crew_eval | R Documentation |
Not a user-side function. Do not call directly.
crew_eval(
command,
name,
data = list(),
globals = list(),
seed = NULL,
algorithm = NULL,
packages = character(0),
library = NULL
)
command |
Language object with R code to run. |
name |
Character of length 1, name of the task. |
data |
Named list of local data objects in the evaluation environment. |
globals |
Named list of objects to temporarily assign to the global environment for the task. |
seed |
Integer of length 1 with the pseudo-random number generator
seed to set for the evaluation of the task. Passed to the
|
algorithm |
Integer of length 1 with the pseudo-random number
generator algorithm to set for the evaluation of the task.
Passed to the |
packages |
Character vector of packages to load for the task. |
library |
Library path to load the packages. See the |
The crew_eval()
function evaluates an R expression
in an encapsulated environment and returns a monad with the results,
including warnings and error messages if applicable.
The random number generator seed, globals
, and global options
are restored to their original values on exit.
A monad object with results and metadata.
Other utility:
crew_assert()
,
crew_clean()
,
crew_deprecate()
,
crew_random_name()
,
crew_retry()
,
crew_terminate_process()
,
crew_terminate_signal()
,
crew_worker()
crew_eval(quote(1 + 1), name = "task_name")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.