[R-pkg-devel] CRAN pretest archived because of 2 NOTEs

Dirk Eddelbuettel edd at debian.org
Wed Apr 18 21:00:14 CEST 2018


On 18 April 2018 at 11:36, Gertjan van den Burg wrote:
| While waiting to get this message posted to the list, I've solved the 
| problem by copying the stdlib rand() and srand() functions into my 
| package under a different name. This makes the check pass and ensures my 
| RNG does not interfere with R's RNG.

I recommend against that. The check, while dated, is valid because many (old)
implementations of rand and srand were of (now known) poor quality.

You have R, you should use its RNGs. Your users may expect that. Accessing eg
runif is easy and documented, and we can trust the RNG behind it.

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org



More information about the R-package-devel mailing list