Undocumented Datasets: ".Random.seed" (R Check CMD)

I create an R package and run into bewilderment when checking the R CMD:

* checking for missing documentation entries ... WARNING
Undocumented data sets:.Random.seed

There is one small data set in the package that is documented. I use R 3.1.1 and RStudio 0.98.1062 for OS X Yosemite, but I get the same error in Windows 7 (and from CRAN). The project also has a vignette that is built using knitr. devtools etc. all updated. The file “.Random.seed” does not exist in the “data” folder before creation, and I believe that it temporarily goes to disk during the build process ... something. I tried adding “.Random.seed” to .Rbuildignore without success, apparently because it does not exist when the build process starts.

Has anyone come across this before?

+4
source share
1 answer

This problem also enters. You have almost certainly solved this by now, but I will post an answer in case someone else runs into the same problem. At some point, you created a random number or set the seed when creating the Rdata file (or at least what happened to me). Just load the workspace from the folder dataand rm(.Random.seed). Save it. Everything is ready. As easy as pie.

http://www.inside-r.org/r-doc/base/set.seed

+7
source

All Articles