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

Please do not change future options #11

Closed
Tracked by #708
HenrikBengtsson opened this issue Jul 27, 2024 · 1 comment · Fixed by #14
Closed
Tracked by #708

Please do not change future options #11

HenrikBengtsson opened this issue Jul 27, 2024 · 1 comment · Fixed by #14

Comments

@HenrikBengtsson
Copy link

Hello. Please do not set future options from within your package, as in:

fmeffects/R/FME.R

Lines 253 to 254 in 020e205

# Ensure parallel-safe RNG
options(future.rng.onMisuse = "ignore", future.seed = TRUE)

This might have unintended side effects for other packages and risk producing incorrect results elsewhere. R options are meant for end-users, not developers. If you need to tweak the settings, please do so temporarily, as explained in https://future.futureverse.org/articles/future-7-for-package-developers.html#avoid-changing-the-future-options.

@HenrikBengtsson
Copy link
Author

Also, there is no option future.seed, so setting that has zero effect.

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

Successfully merging a pull request may close this issue.

1 participant