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 <tke...@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@lists.r-forge.r-project.org > https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel > -- Qiang Kou q...@umail.iu.edu School of Informatics and Computing, Indiana University
_______________________________________________ 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