Re: [Rcpp-devel] questions about Rcpp

2013-02-25 Thread Yuanchao BO
Hi Dirk and Kevin, Thanks very much for your responses! It seems Rcpp is an intermediate step between C++ and R. I will take a look at the examples that you mentioned. Regards, Yuanchao On Mon, Feb 25, 2013 at 1:38 PM, Dirk Eddelbuettel wrote: > > Hi Yuanchao, > > On 25 February 2013 at 11:4

Re: [Rcpp-devel] questions about Rcpp

2013-02-25 Thread Dirk Eddelbuettel
Hi Yuanchao, On 25 February 2013 at 11:47, Yuanchao BO wrote: | I have some questions about Rcpp. I have a complicated R code. Rcpp does not change or simplify your R code. If anything it may make it more complicated as you now have R and C++. But it may also make it a lot faster, or allow you

Re: [Rcpp-devel] questions about Rcpp

2013-02-25 Thread Kevin Ushey
Hi Yuanchao, Rcpp is a tool for transferring R objects between R and C++ code: essentially, you can write functions / modules in C++ that can operate on, generate, and modify R objects, which are then callable from within R. So yes, you're going to have to write some C++ code to make use of Rcpp.