[Rcpp-devel] A beginners guide to Rcpp

Jay Emerson jayemerson at gmail.com
Thu Nov 29 16:40:15 CET 2012


> > Nice document but it would be good to distinguish between the C
> > interfaces -- the .C interface may not be fully general; however, it
> > is adequate for a lot of numerical work such as writing the objective
> > function and gradient in optimization routines and is not painful at
> > all.
>
> I guess my argument would be that if you know Rcpp, you don't need to
> know the C interface. If you know the C interface, you're still better
> off learning Rcpp if you want to tackle anything more complicated.
>
> i.e. if you only have the time to learn one of Rcpp, .C, or .Call,
> you're better off learning Rcpp.
>  That's not to say .C or .Call are not useful to know, but they're
> probably not that useful to learn unless you already known how to
> program in C.  If you don't know how to program in C++, it's still
> worthwhile to learn Rcpp.
>
> Hadley
>

+1  Nicely said.  Maybe I'm rare (an old guy thing) in that I'm
(originally) a C guy.  But I'll keep at it (C++ with Rcpp) and hopefully
get better.

-- 
John W. Emerson (Jay)
Associate Professor of Statistics, Adjunct, and Acting Director of Graduate
Studies
Department of Statistics
Yale University
http://www.stat.yale.edu/~jay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20121129/1dd29b83/attachment.html>


More information about the Rcpp-devel mailing list