Apply R expressions in a parallel way
1 2 3 4 5 6 7 8 9
a vector or a list to apply evaluation on
R expression, unquoted
variable name representing element of each
environment to evaluate expressions
expressions to be evaluated before looping.
number of CPU cores
Within each loop, an item in
".X" will be assigned to variable
".varname") and enter the evaluation. During the evaluation,
async is provided. Expressions within
async will be
evaluated in another session, otherwise will be evaluated in current session.
Below is the workflow:
.X[[i]], variable name
expr in current session.
async is not called, return evaluated
async(aync_expr) is called, evaluate
in another session, and return the evaluation results if
a list whose length equals to
.X. The value of each item
returned depends on whether
async is called. See details for workflow.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.