Integrating R and C++

As I've mentioned before, I use R a lot for statistical analyses. I also do some programming in C++ when I develop software (like Hickory) that I think other people might like to use. I just learned about an approach to integrating C++ and R that I expect to use fairly extensively. It's the Rcpp package: It provides a C++ library that facilitates the integration of R and C++.

C++ code can be assigned to an object in R and called as a function, receiving arguments from  R and returning them. I'm not sure what magic happens under the hood, but it sounds very promising and powerful.

There's an example of its use over at Life in Code. Pretty cool, if you're a code geek like me.