While researching this question, I found a previous discussion: Roxygen2 - how to properly document S3 methods
However, that discussion is several years old. It says you need to at least add @export
to the methods. I have not been using @export
for the methods and everything was fine. Starting with R 4.0.0, I get errors because the methods are not exported:
no applicable method for 'function_name' applied to an object of class "xxx"
Is this change of behavior documented somewhere? Why haven't I ran into problems previously?