Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Undocumented data sets: '.Random.seed' (R CMD check)

Tags:

r

I'm building an R package and have run into a perplexing warning during R CMD check:

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

The package has one small data set, which is documented. I'm using R 3.1.1 and RStudio 0.98.1062 on OS X Yosemite, but I get the same error on Windows 7 (and from CRAN). The project also has a vignette that is built with knitr. devtools etc. are all up to date. The file '.Random.seed' doesn't exist in the "data" folder before building, and my reasoning is that it's getting transiently written to disk during the build process by...something. I tried adding '.Random.seed' to .Rbuildignore without success, presumably because it doesn't exist when the build process begins.

Has anyone encountered this before?

like image 330
schmolze Avatar asked Nov 12 '14 15:11

schmolze


1 Answers

Ran into this problem as well. You have almost certainly solved it by now, but I'll post an answer just in case somebody else hits the same problem. At some point, you generated a random number or set the seed in the creation of the Rdata file (or at least that's what happened to me). Simply load the workspace from you data folder, and rm(.Random.seed). Save it. You're done. Easy as pie.

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

like image 136
Tad Dallas Avatar answered Oct 22 '22 20:10

Tad Dallas