Skip to content

Fix RNG reproducibility wrapper around non-RNG quantity #270

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

Closed
brookslogan opened this issue Mar 2, 2023 · 0 comments · Fixed by #538
Closed

Fix RNG reproducibility wrapper around non-RNG quantity #270

brookslogan opened this issue Mar 2, 2023 · 0 comments · Fixed by #538
Assignees
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers P3 very low priority

Comments

@brookslogan
Copy link
Contributor

brookslogan commented Mar 2, 2023

In the "get started" vignette, there is the following bit of code:

withr::with_rng_version("3.0.0", withr::with_seed(42, length(state)))

This presumably should have been one of the following:

  • something like runif(length(state))
  • just some arbitrary number or sequence without the with_rng_version and with_seed
@brookslogan brookslogan added documentation Improvements or additions to documentation good first issue Good for newcomers P3 very low priority labels Mar 2, 2023
@dshemetov dshemetov self-assigned this Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers P3 very low priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants