[R] including internal data in a package
Joshua N Pritikin
jpritikin at pobox.com
Wed Mar 25 21:15:00 CET 2015
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
More information about the R-help
mailing list