future(expr, envir = parent.frame(), substitute = TRUE, ...,
evaluator = plan())
expr
is
substitute()
:ed, otherwise not.expr
and returns a future. The evaluator function
should accept all the same arguments as this function
(except evaluator
).eager()
,
but this can be changed via plan()
function.plan(lazy)
f <- future({
a <- 7
b <- 3
c <- 2
a * b * c
})
print(resolved(f))
y <- value(f)
print(y)
Run the code above in your browser using DataLab