findGlobals {codetools} | R Documentation |
Finds global functions and variables used by a closure.
findGlobals(fun, merge = TRUE)
fun |
closure. |
merge |
logical |
The result is an approximation. R semantics only allow variables
that might be local to be identified (and event that assumes no use
of assign
and rm
).
Character vector if merge
is true; otherwise, a list with
functions
and variables
components.
Luke Tierney
findGlobals(findGlobals) findGlobals(findGlobals, merge = FALSE)