Displaying 1 result from an estimated 1 matches for "s3methodtest".
2014 Jun 17
2
R CMD check warning with S3 method
...the generic. The generic is defined
in another package (package B). Package A imports the S3 generic from
B. And there's one additional detail: the generic overrides a function
in the stats package.
I've created a minimal test package which reproduces the problem:
https://github.com/wch/s3methodtest
In this case:
- the package imports dplyr, for the dplyr::filter S3 generic
- the package defines a S3 method filter.test
- it imports dplyr, which defines a filter S3 generic
The warning doesn't occur when package dplyr is in Depends instead of
Imports. It also doesn't occur if the metho...