Skip to content
Prev 5372 / 10988 Next

[Rcpp-devel] questions about Rcpp

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 <boyuanchao at gmail.com> wrote: