Re: [R] How to add example data to R package

From: Uwe Ligges <>
Date: Sat, 19 Jun 2010 14:15:11 +0200

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.
> mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Sat 19 Jun 2010 - 12:17:34 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 19 Jun 2010 - 14:10:33 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive