Displaying 2 results from an estimated 2 matches for "allfuns".
Did you mean:
allfuncs
2007 Jun 30
1
graphic for the R profiler
Hello all,
I just wanted to share a small perl script that generates a dot file
from the result of the R profiler. The dot file can than be used to
create a graphical display of the profiling. You can save this file in
the bin directory of your R installation and then create a graph, for
example an SVG by piping the output of the script to dot:
$ R CMD Rprof2dot Rprof.out | dot -Tsvg >
2012 Apr 05
1
issue with base:::namespaceImportMethods
...========
--- src/library/base/R/namespace.R (revision 58917)
+++ src/library/base/R/namespace.R (working copy)
@@ -930,8 +930,10 @@
namespaceImportMethods <- function(self, ns, vars) {
allVars <- character()
+ generics <- character()
+ packages <- character()
allFuns <- methods:::.getGenerics(ns) # all the methods tables in ns
- packages <- attr(allFuns, "package")
+ allPackages <- attr(allFuns, "package")
pkg <- methods:::getPackageName(ns)
if(!all(vars %in% allFuns)) {
message(gettextf("No methods...