From murdoch at stats.uwo.ca  Mon Sep 15 16:28:27 2008
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Mon, 15 Sep 2008 10:28:27 -0400
Subject: [Rd] Including data in package for use by C functions
In-Reply-To: <1EFC5117-5635-427A-AFA4-729CD022E075@ic.ac.uk>
References: <1EFC5117-5635-427A-AFA4-729CD022E075@ic.ac.uk>
Message-ID: <48CE710B.2090102@stats.uwo.ca>

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



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