[Rd] how to install header files in package

Seth Falcon seth at userprimary.net
Fri Jun 13 17:16:06 CEST 2008


* On 2008-06-13 at 08:40 -0500 Dirk Eddelbuettel wrote:
> On 13 June 2008 at 14:28, Kjell Konis wrote:
> | Is there a way to get R CMD INSTALL (and friends) to copy the header  
> | files from a source package's src directory to the include directory?
> 
> Only if you (ab-)use the 'make all' target in src/Makefile to copy
> them, as a recent thread on r-devel showed.  Some of us suggested
> that a 'make install' target would be a nice thing to have.

Can you elaborate on the use case?  If the desire is to allow pkgB to
access header files provided by pkgA, then you can use the LinkingTo
field in the DESCRIPTION file as described in Writing R Extensions
in the "Registering native routines" section.

+ seth

-- 
Seth Falcon | http://userprimary.net/user/



More information about the R-devel mailing list