Re: [Rcpp-devel] Root finder in Rcpp for a quadratic equation in two variables

2017-02-01 Thread Dirk Eddelbuettel
On 1 February 2017 at 16:49, Scida, Daniela wrote: | I am new to Rcpp so I apologize in advance if this question is simple to | answer. I searched on the web but couldn't find much help and I am hoping the | savviness in this forum can help me! | | I have an existing code in R using Rcpp, and I n

[Rcpp-devel] Root finder in Rcpp for a quadratic equation in two variables

2017-02-01 Thread Scida, Daniela
I am new to Rcpp so I apologize in advance if this question is simple to answer. I searched on the web but couldn't find much help and I am hoping the savviness in this forum can help me! I have an existing code in R using Rcpp, and I need to add to this code the following. I have a quadratic func

Re: [Rcpp-devel] Add include path to sourceCpp

2017-02-01 Thread Dirk Eddelbuettel
On 1 February 2017 at 13:01, Tim Keitt 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. Sys.setenv() on the variables make and everything it

Re: [Rcpp-devel] Add include path to sourceCpp

2017-02-01 Thread Qiang Kou
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 wrote: > Is ther

[Rcpp-devel] Add include path to sourceCpp

2017-02-01 Thread Tim Keitt
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 Rcp