[Rcpp-devel] Qt , Rinside, and Windows integration

2015-01-23 Thread Jodi Jhouranda Siregar
this is my .pro file, is there anything wrong? and i got this error message " 'sh' is not recognized as an internal or external command, operable program or batch file." #- # # Project created by QtCreator 2014-12-25T20:51:27 # #

Re: [Rcpp-devel] How to use functions from a R library in .cpp file

2015-01-23 Thread Li Li
Dear Yixuan, Thank you very much. I embedded the following into the program and it worked. The only thing changed was that I added "Rcpp::” so it could read in a cpp file. Rcpp::NumericVector test() { Rcpp::Environment pkg("package:mvtnorm"); Rcpp::Function pmvnorm = pkg["pmvnorm"];