CRAN check is issuing a complaint, Found the following calls to data() loading into the global environment: File ?OpenMx/R/MxAlgebra.R?: data(omxSymbolTable) See section ?Good practice? in ??data?. I tried placing an rda file in the package's R/ directory, but now I get a new CRAN check complaint, Subdirectory 'R' contains invalid file names: ?omxSymbolTable.rda? Furthermore, I can't figure out how to load this file. I found this 2013 post, http://r.789695.n4.nabble.com/Good-practice-for-data-for-R-packages-td4660313.html "The objects will be available in your NAMESPACE." -- I don't understand. Can somebody clarify? Thanks. -- Joshua N. Pritikin Department of Psychology University of Virginia 485 McCormick Rd, Gilmer Hall Room 102 Charlottesville, VA 22904 http://people.virginia.edu/~jnp3bc
On 25.03.2015 21:15, Joshua N Pritikin wrote:> CRAN check is issuing a complaint, > > Found the following calls to data() loading into the global environment: > File ?OpenMx/R/MxAlgebra.R?: > data(omxSymbolTable) > See section ?Good practice? in ??data?.Which says "use a file ?R/sysdata.rda?". So why do you use 'R/omxSymbolTable.rda' then? Best, Uwe Ligges> > I tried placing an rda file in the package's R/ directory, but now I get > a new CRAN check complaint, > > Subdirectory 'R' contains invalid file names: > ?omxSymbolTable.rda? > > Furthermore, I can't figure out how to load this file. I found this 2013 > post, > > http://r.789695.n4.nabble.com/Good-practice-for-data-for-R-packages-td4660313.html > > "The objects will be available in your NAMESPACE." -- I don't > understand. Can somebody clarify? > > Thanks. >