I gleaned these steps from a combination of RStudio’s documentation, posts by Dirk Eddelbuettel and Romain Francois (developers of Rcpp) on Stack Overflow, and a resolved issue on the dplyr GitHub issues tracker that I can no longer find.įirst, you need a C++ compiler. This is mildly non-trivial on OS X Mavericks, and so instead of explaining this repeatedly, I am writing this as a blog post to refer people to. To work with Rcpp you need a working C++ setup for R. Incorporating bits of C++ into your R coding through the Rcpp package is a great way to remove bottlenecks in your code and dramatically improve speed - particularly for operations that requires lots of loops with relatively simple data manipulation.