[Rd] how to install header files in package
Bill Dunlap
bill at insightful.com
Fri Jun 13 16:54:27 CEST 2008
On Fri, 13 Jun 2008, 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.
Which 'include' directory do you mean? $RHOME/include or
<pkg>/include?
You could put a copy of the *.h files into inst/include
to get them into <pkg>/include.
Putting them into $RHOME/include isn't always desirable
or possible (permission problems). If you install
*.h files then you are probably also distributing
*.so, *.dll, and *.lib (on Windows) files and they
should go into a parallel directory. Where should
they go?
----------------------------------------------------------------------------
Bill Dunlap
Insightful Corporation
bill at insightful dot com
"All statements in this message represent the opinions of the author and do
not necessarily reflect Insightful Corporation policy or position."
More information about the R-devel
mailing list