Skip to content
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

DEPRECATION: multiprocess -> multisession #4

Open
HenrikBengtsson opened this issue Jan 2, 2021 · 0 comments
Open

DEPRECATION: multiprocess -> multisession #4

HenrikBengtsson opened this issue Jan 2, 2021 · 0 comments

Comments

@HenrikBengtsson
Copy link

In your package test, you use the 'multiprocess' backend:

plan(multiprocess, workers = availableCores() - 1)

which was deprecated in future 1.20.0 (2020-10-30), in favor of explicitly specifying either 'multisession' or 'multicore', cf. futureverse/future#420.

I recommend that you replace that line with just:

plan(multisession)

Note also, when using workers = availableCores() - 1, there you'll get workers == 0 on a machine that runs the test on a single core. I don't think CRAN ever does that, but if they'd do, your package would produce an error. Because of this, I recommend to use the default, which equals workers = availableCores(), which in turn becomes workers = 2 whenever R CMD check is running (to meet the CRAN policies).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant