search for: removesuperclassbackrefs

Displaying 3 results from an estimated 3 matches for "removesuperclassbackrefs".

2013 Dec 19
2
Strange warnings when unloading packages with S4 classes
..., ...) : Created a package name, ‘2013-12-19 12:14:24’, when none found 3: In FUN(X[[2L]], ...) : Created a package name, ‘2013-12-19 12:14:24’, when none found 4: In FUN(X[[2L]], ...) : Created a package name, ‘2013-12-19 12:14:24’, when none found It appears to be related to the methods:::.removeSuperclassBackRefs function. I can get the warnings to appear when the following are both true: * The package has an S4 class which inherits from a class outside of the package. * The NAMESPACE file contains import(methods) I've created some very simple test packages here which illustrate the problem, along wi...
2013 Oct 29
1
unloadNamespace, getPackageName and "Created a package name xxx " warning
...env(getNamespace('data.table'))) I was wondering what could be done to get rid of these warnings, which I believe in the case "unloadNamespace" case are irrelevant. The stack of calls is: # where 3: sapply(where, getPackageName) # where 4: findClass(what, classWhere) # where 5: .removeSuperclassBackRefs(cl, cldef, searchWhere) # where 6: methods:::cacheMetaData(ns, FALSE, ns) # where 7: unloadNamespace(pkgname) So for instance: >findClass('data.frame', getNamespace('data.table')) generates a warning which once again seems irrelevant. On the top of my head, I could imagine addi...
2014 Nov 25
0
problem with setGroupGeneric from package methods
...if(is(cldef, "classRepresentation")) { if(attach) { .cacheClass(cl, cldef, is(cldef, "ClassUnionRepresentation"), where) } else if(identical(cldef at package, pkg)) { .uncacheClass(cl, cldef) .removeSuperclassBackRefs(cl, cldef, searchWhere) } } } generics <- .getGenerics(where) packages <- attr(generics, "package") if(length(packages) < length(generics)) packages <- rep(packages, length.out = length(generics)) if(attach && exists(&qu...