[Rd] Including data in packages

Dirk Eddelbuettel edd at debian.org
Thu Oct 14 21:17:41 CEST 2010

On 14 October 2010 at 21:06, Janko Thyson wrote:
| The thing is that I don't understand how the actual 'transfer' happens when
| the package is build and installed. Where do the objects 'live' after
| installation and how can I access them after firing library(mypackage)? For
| example, there is a 'data' directory for package 'tm'
| (R_HOME/R-2.11.1/library/tm) but such a directory is missing even if I chose
| option 3) (as stated above) to get my data included. Also, how can I
| actually execute the lazyload? 

If in doubt, copy existing packages, preferably recommended ones:

edd at max:~/src/debian/CRAN$ find -type d -name data | sort
edd at max:~/src/debian/CRAN$ 

The vote is clearly in favour of data/ over inst/data.

Hth, Dirk

Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com

More information about the R-devel mailing list