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

2015-09-16 Thread John Merrill
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 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?
___
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

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

2015-09-16 Thread JJ Allaire
See "Section 3.4 Types in Generated Code" of the Rcpp Attributes vignette (
https://cran.r-project.org/web/packages/Rcpp/vignettes/Rcpp-attributes.pdf)


On Wed, Sep 16, 2015 at 1:44 PM, John Merrill 
wrote:

> 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 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?
>
> ___
> Rcpp-devel mailing list
> Rcpp-devel@lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
>
___
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel