search for: cunique

Displaying 1 result from an estimated 1 matches for "cunique".

Did you mean: unique
2011 Dec 15
1
S4 NAMESPACE method imports and exports do not include (promoted?) generics
...setMethod(unique, "B", function(x, incomparables=FALSE, ...) unique(x at b)) NAMESPACE: importFrom(PkgA, unique) exportClasses(B) exportMethods(unique) and PkgC wants to import PkgB's classes and methods DESCRIPTION Imports: methods, PkgB R/f.R cunique <- function(x) unique(x) NAMESPACE importMethodsFrom(PkgB, unique) export(cunique) then (a) the 'unique' generic is not available to the user of PkgB > library(PkgB) > unique(new("B", b=1:5)) Error in unique.default(new("B", b = 1:5)) : unique(...