You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
• The default method for generating from a discrete uniform
distribution (used in sample(), for instance) has been changed.
...
The previous method can be requested using RNGkind() or
RNGversion() if necessary for reproduction of old results.
To make your package successfully pass the checks for current R-devel
and R-release you may find it most convenient to insert
suppressWarnings(RNGversion("3.5.0"))
before calling set.seed() in your example, vignette and test code (where
the difference in RNG sample kinds matters, of course).
Note that this ensures using the (old) non-uniform "Rounding" sampler
for all 3.x versions of R, and does not add an R version dependency.
Note also that the new "Rejection" sampler which R will use from 3.6.0
onwards by default is definitely preferable over the old one, so that
the above should really only be used as a temporary measure for
reproduction of the previous behavior (and the run time tests relying on
it).
Please correct before 2019-03-20 to safely retain your package on CRAN.
From Kurt:
Related to:
https://twitter.com/groundwalkergmb/status/1100190052125237248
https://arxiv.org/pdf/1809.06520.pdf
The text was updated successfully, but these errors were encountered: