You’re reading the first edition of Advanced R; for the latest on this topic, see the Rewriting R code in C++ chapter in the second edition. High performance functions with Rcpp Sometimes R code just isn’t fast enough. You’ve used profiling to figure out where your bottlenecks are, and you’ve done everything you can in R, but your code still isn’t fast enough. In this chapter you’ll learn how to i