We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be useful if registerDoFuture() would propagate also via future() / %<-% (as it currently does with %dopar%). Currently, it doesn't:
registerDoFuture()
future()
%<-%
%dopar%
library("doFuture") registerDoFuture() plan(multisession) print(getDoParName()) # [1] "doFuture" # registerDoFuture() propagates through %dopar% > a <- foreach(i = 1L) %dopar% getDoParName() > a [[1]] [1] "doFuture" # But not through plain futures b %<-% getDoParName() > b # [1] NULL
The workaround is to manual set it inside these futures:
b %<-% { registerDoFuture() getDoParName() } > b # [1] "doFuture"
which is not ideal.
The background for this feature is in #21
The text was updated successfully, but these errors were encountered:
This is only needed when using %dopar%; by definition, this is a non-issue when using %dofuture% .
%dofuture%
Sorry, something went wrong.
No branches or pull requests
It would be useful if
registerDoFuture()
would propagate also viafuture()
/%<-%
(as it currently does with%dopar%
). Currently, it doesn't:The workaround is to manual set it inside these futures:
which is not ideal.
See also
The background for this feature is in #21
The text was updated successfully, but these errors were encountered: