Keirstead, James E
2014-Aug-04 12:07 UTC
[Rd] Preferred way to include internal data in package?
Hi, I?m developing a package and would like to include some data sets for internal use only, e.g. configuration parameters for functions. What is the preferred way of doing this? If I put them in data/, then R CMD check asks me to document them but I?d prefer it if they floated beneath the surface, without the users awareness. Many thanks, James
> I?m developing a package and would like to include some data sets for internal use only, e.g. configuration parameters for functions. What is the preferred way of doing this? If I put them in data/, then R CMD check asks me to document them but I?d prefer it if they floated beneath the surface, without the users awareness.Perhaps in sysdata.rda. See "Writing R Extensions".
Charles Berry
2014-Aug-04 20:04 UTC
[Rd] Preferred way to include internal data in package?
Keirstead, James E <j.keirstead <at> imperial.ac.uk> writes:> > Hi, > > I?m developing a package and would like to include some data sets for > internal use only, e.g. > configuration parameters for functions. What is the preferred way of > doing this? If I put them in data/, > then R CMD check asks me to document them but I?d prefer it if they > floated beneath the surface, without > the users awareness.>From WRE Section 1.1.6 Data in packages:[The data subdirectory] should not be used for other data files needed by the package, and the convention has grown up to use directory inst/extdata for such files. --- So, put them in inst/extdata. HTH, Chuck