Re: [Rcpp-devel] Trouble with package unit test and sourceCpp()

2014-09-27 Thread Christian Gunning
Thanks. I ended up using RcppParallel as my guide and finally got everything working. On Fri, Sep 26, 2014 at 5:27 AM, Dirk Eddelbuettel wrote: > > Christian, > > On 26 September 2014 at 03:51, Christian Gunning wrote: > | This is a bit of a late response - I finally got back to this today. > |

Re: [Rcpp-devel] Trouble with package unit test and sourceCpp()

2014-09-26 Thread Dirk Eddelbuettel
Christian, On 26 September 2014 at 03:51, Christian Gunning wrote: | This is a bit of a late response - I finally got back to this today. | I should have clarified that I'm using testthat and devtools. [...] | Any thoughts? No as I use RUnit. I'd go to CRAN, look at the set of packages using Rc

Re: [Rcpp-devel] Trouble with package unit test and sourceCpp()

2014-09-26 Thread Christian Gunning
Dirk, This is a bit of a late response - I finally got back to this today. I should have clarified that I'm using testthat and devtools. I used the examples in RcppArmadillo to fix the path for compiling code in tests, which is now working. But I'm still running into what appears to be the issue

Re: [Rcpp-devel] Trouble with package unit test and sourceCpp()

2014-09-03 Thread Dirk Eddelbuettel
On 2 September 2014 at 20:42, Christian Gunning wrote: | I'm working on a package that includes a unit test that calls | sourceCpp() to test a particular use-case. [...] | My question is whether there's a sane workaround, or if I should give | up on these tests. Alternately, is there a cleaner wa

[Rcpp-devel] Trouble with package unit test and sourceCpp()

2014-09-02 Thread Christian Gunning
Dear all, I'm working on a package that includes a unit test that calls sourceCpp() to test a particular use-case. As in [1], test(".") works swimmingly, but check() and vanilla "R CMD check" fail with the ominous error "cannot open file 'startup.Rs': No such file or directory". If I understand