make_futures_ | R Documentation |
Instead of evaluating the expressions in the list, this function constructs a future for each expression and returns the list of these futures.
make_futures_(expressions, .future.args = list())
expressions |
The list of unevaluated expressions for which to
construct futures. Each element can be anything that
|
.future.args |
Additional arguments to pass to
|
This is the standard-evaluation helper for make_futures()
, which
uses non-standard evaluation.
A list of futures, whose values will be the result of
evaluating each of expressions
.
rlang::eval_tidy()
, rlang::quo()
, rlang::as_quosure()
, future::value()
library(future) library(rlang) expressions <- list(a = quo(1+1), b = quo(2+2)) flist <- make_futures_(expressions) flist value(flist) # Same result without futures lapply(expressions, eval_tidy)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.