Skip to content

Including data in package for use by C functions

2 messages · Ernest Turro, Duncan Murdoch

#
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.

Thanks,

E
#
On 9/15/2008 10:18 AM, Ernest Turro wrote:
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