search for: processnamespaces

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

2011 Aug 23
2
Increase transparency: suggestion on how to avoid namespaces and/or unnecessary overwrites of existing functions
...me)/median(res.b$time) # Can be made up by explicit assignment: foo <- base::parse res.a <- microbenchmark(eval(parse(text="a <- 5"))) res.b <- microbenchmark(eval(foo(text="a <- 5"))) median(res.a$time)/median(res.b$time) # Automatically prepend function names: processNamespaces <- function( do.global=FALSE, do.verbose=FALSE, .delim.name="_", ... ){ srch.list.0 <- search() srch.list <- gsub("package:", "", srch.list.0) if(!do.global){ assign(".NS", new.env(), envir=.GlobalEnv)...