View source: R/get_globals_and_packages_xapply.R
get_globals_and_packages_xapply | R Documentation |
Identify Globals and Packages of a Map-Reduce Function Call
get_globals_and_packages_xapply(
fun,
fun_name = as.character(substitute(fun)),
args = NULL,
args_name = "...",
globals = TRUE,
packages = NULL,
envir = parent.frame()
)
fun |
A function that takes one or more arguments. |
fun_name |
The name of the argument that |
args |
(optional) A list of arguments passed to |
args_name |
If |
globals |
(optional) a logical, a character vector, a named list, or a Globals object. If TRUE, globals are identified by code inspection based on |
packages |
(optional) a character vector specifying packages to be attached in the R environment evaluating the future. |
envir |
The environment from where globals should be searched. |
A names list with elements:
globals
- a FutureGlobals object
packages
- a character vector of package names
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.