[Rd] Including data in package for use by C functions

Duncan Murdoch murdoch at stats.uwo.ca
Mon Sep 15 16:28:27 CEST 2008


On 9/15/2008 10:18 AM, Ernest Turro wrote:
> How should one go about including data files for use by some C  
> function in an R package? The data subdirectory is for additional data  
> files the package makes available for loading from R, not C, and  
> including the files in some other directory is no good because non- 
> standard directories are removed when building the package.

Nonstandard directories in the "inst" subdir are moved up one level and 
kept, so that's the place to put stuff like this.

e.g. packagesrc/inst/foo becomes package/foo when the package is installed.

Duncan Murdoch



More information about the R-devel mailing list