[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’:
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:

Furthermore, I can't figure out how to load this file. I found this 2013 


"The objects will be available in your NAMESPACE." -- I don't 
understand. Can somebody clarify?


Joshua N. Pritikin
Department of Psychology
University of Virginia
485 McCormick Rd, Gilmer Hall Room 102
Charlottesville, VA 22904

More information about the R-help mailing list