Description Usage Arguments Details Value Author(s) Examples
Get global variables and package dependencies for a function
1 | drGetGlobals(f)
|
f |
function |
This traverses the parent environments of the supplied function and finds all global variables using findGlobals
and retrieves their values. All package function calls are also found and a list of required packages is also returned.
a list of variables (named by variable) and a vector of package names
Ryan Hafen
1 2 3 | a <- 1
f <- function(x) x + a
drGetGlobals(f)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.