[R] including internal data in a package

Uwe Ligges ligges at statistik.tu-dortmund.de
Wed Mar 25 23:06:40 CET 2015



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.
>



More information about the R-help mailing list