Identify Globals and Packages of a Map-Reduce Function Call
A function that takes one or more arguments.
The name of the argument that
fun should be passed
(optional) A list of arguments passed to
fun, either via
a named argument (
args_name), or via ....
"...", then the arguments in
args are passed
fun() as individual arguments. If a string, then
fun() via the argument of this name.
(optional) a logical, a character vector, a named list, or a Globals object. If TRUE, globals are identified by code inspection based on
tweak searching from environment
envir. If FALSE, no globals are used. If a character vector, then globals are identified by lookup based their names
globals searching from environment
envir. If a named list or a Globals object, the globals are used as is.
(optional) a character vector specifying packages to be attached in the R environment evaluating the future.
The environment from where globals should be searched.
A names list with elements:
globals - a FutureGlobals object
packages - a character vector of package names