Re: [Rcpp-devel] Begginer Problems...

2011-03-21 Thread Dirk Eddelbuettel
On 21 March 2011 at 16:56, Antonio Hermes M. da S. Junior - Depto. Estatistica wrote: | Hello, | |   I spent last weekend trying to run this piece of code (and a lot of | variations too): | | suppressPackageStartupMessages(require(inline)) | suppressPackageStartupMessages(require(Rcpp)) | | ve

[Rcpp-devel] Begginer Problems...

2011-03-21 Thread Antonio Hermes M. da S. Junior - Depto. Estatistica
Hello,   I spent last weekend trying to run this piece of code (and a lot of variations too): suppressPackageStartupMessages(require(inline)) suppressPackageStartupMessages(require(Rcpp)) vero.empi.cpp <- '   Rcpp::NumericVector xa(vpf) ;   Rcpp::NumericVector xb(vpe) ;   Rcpp::NumericVector

Re: [Rcpp-devel] R Embedded in a class function

2011-03-21 Thread CESAR PERNALETE
Hi Davor, Dirk. Thanks a lot for your help. I tried the way Dirk are suggesting and it appears to work fine. The application at all is not working yet, i don't know exactly what is happening, so i did a consultation to the NOMAD developer. But i believe that the problem of using the R object i

Re: [Rcpp-devel] R Embedded in a class function

2011-03-21 Thread Davor Cubranic
Hi Cesar, I don't know why your embed does not work, but I would suggest to rework your code a bit and follow the pattern used by Dirk in his Qt example: 1. create an RInside instance "R" in the "main" function 2. pass that RInside instance by reference to the constructor for MyEvaluator and sa

Re: [Rcpp-devel] using RApi inC/C++

2011-03-21 Thread Dirk Eddelbuettel
On 21 March 2011 at 15:31, nandan amar wrote: | Thanks a lot. | There was a mistake while configuration. | Now corrected. Excellent news, and thanks for reporting back. Dirk | On 21 March 2011 02:46, Dirk Eddelbuettel wrote: | > | > On 21 March 2011 at 00:59, nandan amar wrote: | > | I was se

Re: [Rcpp-devel] using RApi inC/C++

2011-03-21 Thread nandan amar
Thanks a lot. There was a mistake while configuration. Now corrected. On 21 March 2011 02:46, Dirk Eddelbuettel wrote: > > On 21 March 2011 at 00:59, nandan amar wrote: > | I was searching for SVN source link for rinside > | I could only get tar.gz from > | http://cran.r-project.org/web/packages/

[Rcpp-devel] R.e. Rcpp compile question

2011-03-21 Thread Christian Gunning
"Here's the command:" Works for me.  Try sourcing the attached file (which includes your command, +verbose=T), and post back the *full* results, including the source('tmp.R.txt') command and the next prompt line. -christian -- A man, a plan, a cat, a ham, a yak, a yam, a hat, a canal – Panama! re