-
Notifications
You must be signed in to change notification settings - Fork 1
Add support for fwb futurization #3
New issue
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
base: develop
Are you sure you want to change the base?
Conversation
|
Thank you for this! Could you please create an issue that points to this PR? I've missed, forgotten about PR-only contributions in the past. |
R/addons-fwb.R
Outdated
|
|
||
| template <- quote( | ||
| local({ | ||
| oopts <- options(future.ClusterFuture.clusterEvalQ = "error") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Option future.ClusterFuture.clusterEvalQ is only used when future::makeClusterFuture() is involved. It looks like you're using pbapply, which uses future.apply internally, so there's no need for this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And because of that, there is not restriction on R (>= 4.4.0).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, the change should be made!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can drop the local({ ... }) wrapper too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can drop the local({ ... }) wrapper too
|
Mentioned in #4. |
Hi Henrik, This is a really cool project, and I wanted to help expand the available functions that could be
futurized. I added support for my R package fwb, which is basically a drop-in for boot. This isn't really the best use case because parallelization is as simple as settingcl = "future"in the package's function calls, but I thought this would be a good excuse to better understand the package in case I make some additional contributions.I added fwb to most of the relevant documentation (wherever boot was mentioned), including the Description and README, and I added some tests. I didn't update the NEWS or give it its own vignette; I figured you could pretty much copy the boot vignette or even add fwb to it.
Noah