[Rcpp-devel] Add include path to sourceCpp

Qiang Kou qkou at umail.iu.edu
Wed Feb 1 20:11:25 CET 2017


Hi, Tim,

I think JJ gave the answer on stackoverflow, you can find it from [1].

You can also try to Sys.setenv("PKG_CXXFLAGS"="-I/path/to/header") before
the sourceCpp.

Best wishes,

KK

[1] http://stackoverflow.com/a/13996107/2168696

On Wed, Feb 1, 2017 at 2:01 PM, Tim Keitt <tkeitt at utexas.edu> wrote:

> Is there a way to add an additional include path when calling sourceCpp? I
> am trying to get it to find "inst/include" in my package because I am
> calling sourceCpp during testing with testthat.
>
> THK
>
> http://www.keittlab.org/
>
> _______________________________________________
> Rcpp-devel mailing list
> Rcpp-devel at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
>



-- 
Qiang Kou
qkou at umail.iu.edu
School of Informatics and Computing, Indiana University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20170201/86b6e6a9/attachment.html>


More information about the Rcpp-devel mailing list