<div dir="ltr">See "Section 3.4 Types in Generated Code" of the Rcpp Attributes vignette (<a href="https://cran.r-project.org/web/packages/Rcpp/vignettes/Rcpp-attributes.pdf">https://cran.r-project.org/web/packages/Rcpp/vignettes/Rcpp-attributes.pdf</a>)<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 16, 2015 at 1:44 PM, John Merrill <span dir="ltr"><<a href="mailto:john.merrill@gmail.com" target="_blank">john.merrill@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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.<div><br></div><div>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.</div><div><br></div><div>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?</div></div>
<br>_______________________________________________<br>
Rcpp-devel mailing list<br>
<a href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" rel="noreferrer" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a><br></blockquote></div><br></div>