Displaying 1 result from an estimated 1 matches for "garphics".
2009 Aug 17
2
S4 Generics and NAMESPACE : justified warning ?
...import(methods)
exportClasses("classA")
exportMethods("plot")
pkgA/R/pkgA.R:
setClass("classA", contains = "matrix")
setMethod("plot", "classA", function(x, y, ...) NULL)
pkgB/NAMESPACE:
import(methods)
import(garphics)
import(pkgA)
Loading pkgB would then generate a warning because the generic 'plot'
in pkgA overwrites the 'plot' function imported from graphics name
space :
Loading required package: pkgA
Warning message:
In namespaceImportFrom(self, asNamespace(ns)) :
replacing previous i...