-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
S3 methods for S4 classes not properly documented #741
Comments
This is a case where you should use |
Checked it, and
in the NAMESPACE file instead of |
|
Ah, so I need both tags together. Tried it, seems to work. Thx. |
jranke
added a commit
to jranke/saemixextension
that referenced
this issue
Oct 27, 2021
This fixes the R CMD check error in the example code. Fix found using a well-known search engine, looking for S3 methods for S4 classes, leading to r-lib/roxygen2#741. Further search lead to hints on how to use the @method tag at https://r-pkgs.org/man.html#man-s3
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Per the methods manual , the following construct should be used when creating S3 methods for S4 classes. This is eg needed when having a model framework in S4, but one needs to provide predict(), fitted(), coef() , ... methods.
And the namespace should contain
When I try the following :
Then :
export(unique.uncased)
is added.If I use the (deprecated) tag
@S3method
instead, I have the correct entry in the namespace but still the same note in R CMD check.The text was updated successfully, but these errors were encountered: