[R] How to add example data to R package
Uwe Ligges
ligges at statistik.tu-dortmund.de
Sat Jun 19 14:15:11 CEST 2010
On 18.06.2010 13:57, wenjun zheng wrote:
> Dear R Users,
>
> I want to add an data in raw type to my package, so it can not be
> loading by data(), and if I put it in the 'data' subdirectory, it will be
> missed after the package built.
No, it should stay there, but you have to say
ZipData: no
in your DESCRIPTION file in order to avoid it being zipped up when the
binary package is built.
If you want to put it somewhere else, use the ./inst directory of the
source package. For more details see the manual "Writing R Extensions".
Uwe Ligges
>
> How to put a raw data into a package?
>
> Any suggestions will be appreciated.
>
More information about the R-help
mailing list