I have the latest version of R (3.6.1), but when I use functions that are using the random number generator, they default to an older (i.e. pre-3.6.0) RNG which uses Rounding instead of Rejection for sampling. I am not sure why this is happening, and would appreciate your help resolving it.
set.seed(1)
sample(20)
RNGkind()
R.version
Below are the results of my run:
set.seed(1)
sample(20)
# 6 8 11 16 4 14 15 9 19 1 3 2 20 10 5 7 12 17 18 13
RNGkind()
# "Mersenne-Twister" "Inversion" "Rounding"
R.version
platform x86_64-w64-mingw32
arch x86_64
os mingw32
system x86_64, mingw32
status Patched
major 3
minor 6.1
year 2019
month 09
day 06
svn rev 77160
language R
version.string R version 3.6.1 Patched (2019-09-06 r77160)
nickname Action of the Toes
Based on the NEWS and the linked discussion, I am expecting the output of RNGkind()
to look as follows instead:
# "Mersenne-Twister" "Inversion" "Rejection"
Am I misunderstanding the NEWS?