Currently .onAttach() will change the state of a users random number generator.
|
.onAttach <- function(lib, pkg) { # nolint |
|
if (!interactive() || stats::runif(1) > 0.1) return() |
|
|
Would you consider a change to preserve it?
For reference I believe {ggplot2} was updated to use withr::with_preserve_seed() for this reason.
Motivate by this thread https://fosstodon.org/@[email protected]/112079393660379008