search for: nmspc

Displaying 4 results from an estimated 4 matches for "nmspc".

2015 Jul 07
3
List S3 methods and defining packages
Hi, from the man page ?methods, I expected to be able to build pairs (class,package) for a given S3 method, e.g., print, using attr(methods(print), 'info'). However all the methods, except the ones defined in base or S4 methods, get the 'from' value "registered S3method for print", instead of the actual package name (see below for the first rows). Is this normal
2015 Jul 07
0
List S3 methods and defining packages
...dsTable__.", envir = asNamespace(envir)) methods <- ls(mtable, pattern = pattern) env <- vapply(methods, function(x) { environmentName(environment(get(x, mtable))) }, character(1)) setNames(names(env), unname(env)) } followed by nmspc = loadedNamespaces() lapply(setNames(nmspc, nmspc), .S3methodsInNamespace, "^plot.") which reveals the different meanings of 'from', e.g., > lapply(setNames(nmspc, nmspc), .S3methodsInNamespace, "^plot.")["graphics"] $graphics stats...
2015 Jul 08
0
List S3 methods and defining packages
...nv <- vapply(methods, function(x) { >>> environmentName(environment(get(x, mtable))) >>> }, character(1)) >>> setNames(names(env), unname(env)) >>> } >>> >>> >>> followed by >>> >>> nmspc = loadedNamespaces() >>> lapply(setNames(nmspc, nmspc), .S3methodsInNamespace, "^plot.") >>> >>> which reveals the different meanings of 'from', e.g., >>> >>>> lapply(setNames(nmspc, nmspc), .S3methodsInNamespace, >>>>...
2014 Feb 21
0
instantiating a reference class with an initialize() method from .onLoad fails
...ted ERROR: loading failed * removing ?/home/mtmorgan/R/x86_64-unknown-linux-gnu-library/3.1/PkgA? * restoring previous ?/home/mtmorgan/R/x86_64-unknown-linux-gnu-library/3.1/PkgA? Having read https://stat.ethz.ch/pipermail/r-devel/2013-October/067636.html I used setLoadAction(function(nmspc) .A()) in place of .onLoad, and had success. However, a more complicated scenario, https://stat.ethz.ch/pipermail/bioc-devel/2014-February/005271.html where a data file contains an instance of a class defined in a package that imports PkgA, fails during R CMD check or in an R session with...