search for: mergemethodst

Displaying 2 results from an estimated 2 matches for "mergemethodst".

Did you mean: mergemethods
2007 Apr 15
0
as() creates invalid entries in methods list?
...MethodDefinition objects (or at least that is what is usually there for methods defined via setAs). It happens that if you try to load a package that has a NAMESPACE file with a directive exportMethods(coerce) but no call to setAs then you get an error: library("hello") Error in .mergeMethodsTable(generic, mtable, get(tname, envir = env), : Invalid object in meta table of methods for "coerce", label "list#A", had class "function" So I think there are two problems that might need fixes: 1. methods::as shouldn't create invalid entries. I...
2014 Nov 25
0
problem with setGroupGeneric from package methods
...FALSE)) .setupMethodsTables(generic) ### !!! mtable <- get(".MTable", envir = fenv) if(!reset) { env <- as.environment(where) tname <- .TableMetaName(generic at generic, generic at package) if(exists(tname, envir = env, inherits = FALSE)) { .mergeMethodsTable(generic, mtable, get(tname, envir = env), attach) } ## else used to warn, but the generic may be implicitly required ## by class inheritance, without any explicit methods in this package } if(length(generic at group)) { groups <- as.list(generic at group) generics...