[Rcpp-devel] issue with example Makevars file in Rcpp skeleton folder

Dirk Eddelbuettel edd at debian.org
Thu May 23 03:43:03 CEST 2013


On 22 May 2013 at 18:14, Chris Paciorek wrote:
| In creating a test package that uses Rcpp, I needed to add the following line
| to the Makevars file that is in the skeleton folder of the Rcpp package bundle:
| PKG_CPPFLAGS=`Rscript -e 'Rcpp:::CxxFlags()'`
| Otherwise, the compiler was not able to find Rcpp.h when installing my test
| package.
| 
| I might be missing something, but shouldn't the PKG_CPPFLAGS bit be in those
| example Makevars files?

No, since 'LinkingTo: Rcpp' in the DESCRIPTION does it, and does it better.
The skeleton examples use that feature too.  [ That said, we used to use this
until we got LinkingTo: from R Core. ]

Dirk

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com


More information about the Rcpp-devel mailing list