drGetGlobals: Get Global Variables and Package Dependencies

Description Usage Arguments Details Value Author(s) Examples

Description

Get global variables and package dependencies for a function

Usage

1

Arguments

f

function

Details

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.

Value

a list of variables (named by variable) and a vector of package names

Author(s)

Ryan Hafen

Examples

1
2
3
a <- 1
f <- function(x) x + a
drGetGlobals(f)


Search within the datadr package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.