Closed HenrikBengtsson closed 3 years ago
I think a reproducible example based on plain sequential futures is:
library(future)
plan(sequential)
f <- future(fcn(), globals = list(a=42, fcn=function() a))
value(f)
## Error in fcn() : object 'a' not found
The same works with, say, plan(cluster, workers = 1)
.
This fails also with plan(multicore)
. ... hmm, starting to get a deja vu feeling about this one.
hmm, starting to get a deja vu feeling about this one.
Indeed, this is the same problem as in https://github.com/HenrikBengtsson/future.apply/issues/10 from May 2018.
Issue
and
The above works with other types of backends, e.g.
plan(cluster, workers = 1L)
.Troubleshooting
It works with plain futures:
Since it affects both future.apply and furrr, my best guess is that this needs to be fixed in the future package.