[Rcpp-devel] Adding a foreign include file to the RcppExports.cpp file

John Merrill john.merrill at gmail.com
Wed Sep 16 19:44:52 CEST 2015


I'm trying to build an R package which exposes functions which depend on
Google's re2 library.  In order to do that, I need to depend on
/usr/local/include/re2.h.

That's really easy in the main cpp files, since #include<re2.h> works  The
problem arises when I use compileAttributes() to generate an
RcppExports.cpp file: the generated file doesn't contain the relevant
#include line.

I've search all the mailing lists I could find as well as groveling through
all the documentation I could think of.  Evidently, I've missed something
obvious.  How does one do this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20150916/d242d804/attachment.html>


More information about the Rcpp-devel mailing list