search for: isbasevar

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

Did you mean: basevar
2013 Jan 16
2
Codetools Query (repost)
...s: "=" "{" "+" "y" How can i ignore variables which are present in base, utils, stat environments from being added (equivalently(?) symbols present in R when R is started) I tried funs <- new.env() enter <- function(type, v, e, w){ if(codetools:::isBaseVar(v, w$env) || codetools:::isStatsVar(v, w$env) || codetools:::isUtilsVar(v, w$env) || v == "Quote") return() assign(v, TRUE, funs) } library(codetools) collectUsage(moo, enterGlobal = enter) but this threw Error in exists(v, envir = e, inherits = FALSE, mode = "function&...