Displaying 2 results from an estimated 2 matches for "methodsgenerics".
2012 Feb 26
0
Comments on R_exts section 1.6.6, Namespaces with S4 classes and methods
.... Packages then Import: BiocGenerics and
importFrom(BiocGenerics, plot). This kind of approach, whatever
limitations of current implementation, seems much better, providing some
consistency in documentation and application while limiting artificial
dependencies (to just one, BiocGenerics). Is a methodsGenerics package
in base R an appropriate direction?
Somewhat earlier in section 1.6.6, the advice offered is "If the generic
function is not local to this package, either because it was imported as
a generic function or because the non-generic version has been made
generic solely to add S4 metho...
2012 Feb 26
1
improved error message when existing implicit S4 generic is not imported?
pkgA's NAMESPACE has
importFrom(graphics, plot)
exportClasses("A")
exportMethods("plot")
R/foo.R has
setClass("A")
setMethod("plot", "A", function(x, y, ...) {})
During R CMD INSTALL pkgA_1.0.tar.gz we are told
** preparing package for lazy loading
Creating a generic function for 'plot' from package