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.
I highly recommend taking the time to learn -- Rcpp is really less complex than it looks. It lowers the barriers to entry for C++ coding a very substantial amount for R programmers. Even if you have no background C++ experience, as long as you know the basic syntax you can learn C++ with / through Rcpp. Read through the vignettes, replicate and modify some of the code examples, see what works, see what breaks, and learn in that way. Hadley's guide at https://github.com/hadley/devtools/wiki/Rcpp is very excellent for going from 'no experience' to 'basic proficiency' as well. FWIW, I'm an Rcpp user rather than developer. I had basically no C++ background before delving into Rcpp, and Rcpp has been immensely useful for learning (and implementing!) some basic C++. -Kevin On Mon, Feb 25, 2013 at 8:47 AM, Yuanchao BO <[email protected]> wrote: > Hi all, > > I am a third year PhD student. > > I have some questions about Rcpp. I have a complicated R code. Can I run the > code in C++ by using Rcpp? Do I need to write extra codes to integrate R > into C++? > > I read some of the Rcpp tutorials and I am under an impression that most of > the Rcpp code is C++ code. I still feel intimidated by the complexity of > Rcpp. > > Thank you! > Yuanchao > > _______________________________________________ > Rcpp-devel mailing list > [email protected] > https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel _______________________________________________ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
