[Rcpp-devel] A beginners guide to Rcpp

Romain Francois romain at r-enthusiasts.com
Thu Nov 29 15:05:04 CET 2012

Le 29/11/12 15:00, Hadley Wickham a écrit :
>> I'm not sure I'd go quite this far in ragging on the C API.  For someone who
>> wants to write plain-vanilla C code (without C++) working on vectors and
>> matrices, it really seems acceptable to me.  If someone doesn't have at
>> least some basic technical ability, they shouldn't be writing C or C++ code,
>> anyway.
> In my defence, I did also write a chapter on the C API:
> https://github.com/hadley/devtools/wiki/c-interface, and I think
> arcane is the right word to describe it! There's a lot of historical
> baggage in the API, and most things are not named the same way as in R
> (eg. real instead of numeric, VECSXP vs LISTSXP, namesgets to _set_
> names, ...)


In my view people should want to "write performance code" not "write C 
code" or "write C++ code", and Rcpp is a very good candidate for this.

>> I'll look this over, Hadley, once things settle down.  Thanks for your
>> efforts on this!
> You're welcome, and any feedback will be greatly appreciated.
> Hadley

Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30

R Graph Gallery: http://gallery.r-enthusiasts.com
`- http://bit.ly/SweN1Z : SuperStorm Sandy

blog:            http://romainfrancois.blog.free.fr
|- http://bit.ly/RE6sYH : OOP with Rcpp modules
`- http://bit.ly/Thw7IK : Rcpp modules more flexible

More information about the Rcpp-devel mailing list