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] Sample function(s) for inclusion in RcppArmadillo

2014-09-26 Thread Christian Gunning
Dear all, The Walker Alias method is now (finally) implemented, along with unit tests. To my knowledge, the only thing not implemented is R's sample2 - a special version of sample.int for (!replace && is.null(prob) && n > 1e+07 && size <= n/2). I also added rmultinom, which behaves how an R API

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] Sample function(s) for inclusion in RcppArmadillo

2014-09-26 Thread Dirk Eddelbuettel
Christian, On 26 September 2014 at 04:41, Christian Gunning wrote: | The Walker Alias method is now (finally) implemented, along with unit | tests. To my knowledge, the only thing not implemented is R's sample2 | - a special version of sample.int for (!replace && is.null(prob) && n | > 1e+07 &&

[Rcpp-devel] undefined reference

2014-09-26 Thread Kevin Kunzmann
Hi Guys, I am getting this strange error: g++ -m64 -shared -s -static-libgcc -o cme.dll tmp.def RcppExports.o cme.o misc.o pb.o C:/Users/Kevin/R/win-library/3.1/RcppMLPACK/lib/x64/libRcppMLPACK.a -LC:/R/R-31~1.1/bin/x64 -lRlapack -LC:/R/R-31~1.1/bin/x64 -lRblas -lgfortran -Ld:/RCompile/CRA