<div dir="ltr"><div><div>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:<br>
PKG_CPPFLAGS=`Rscript -e 'Rcpp:::CxxFlags()'` <br></div><div>Otherwise, the compiler was not able to find Rcpp.h when installing my test package.<br></div><div><br></div>I might be missing something, but shouldn't the PKG_CPPFLAGS bit be in those example Makevars files?<br>
<br></div>Chris<br><br><br>----------------------------------------------------------------------------------------------<br>Chris Paciorek <br><br>Statistical Computing Consultant, Associate Research Statistician, Lecturer<br>
<br>Office: 495 Evans Hall Email: <a href="mailto:paciorek@stat.berkeley.edu">paciorek@stat.berkeley.edu</a><br>Mailing Address: Voice: 510-842-6670 <br>Department of Statistics Fax: 510-642-7892<br>
367 Evans Hall Skype: cjpaciorek<br>University of California, Berkeley WWW: <a href="http://www.stat.berkeley.edu/~paciorek">www.stat.berkeley.edu/~paciorek</a><br>Berkeley, CA 94720 USA Permanent forward: <a href="mailto:paciorek@alumni.cmu.edu">paciorek@alumni.cmu.edu</a><br>
<br></div>