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
Duncan Murdoch
2008-Sep-15 14:28 UTC
[Rd] Including data in package for use by C functions
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