Re: [R-pkg-devel] Testthat environment using sourceCpp

2017-09-30 Thread Dirk Eddelbuettel
Charles, I cannot help you with testthat or devtools, but the very issue of how to get C++ test files compiled (with the help of Rcpp) and used is deployed in a number of packages, both ours and other. To take but one example, RcppArmadillo does it with about half a dozen C++ files it keeps in a

[R-pkg-devel] Testthat environment using sourceCpp

2017-09-29 Thread Charles Determan
Greetings, I am trying to create some unit tests for a Rcpp::sourceCpp call. It includes some dependencies with the // [[Rcpp::depends]] flag and compiles and passes if I call the test file with testthat::test_file. However, if I try to call it with devtools::test() to run all of my tests, the c