Introduction
In this chapter and the next, we connect our simple C++ library of statistical functions to R. We do this by creating an R package using Rcpp. We then use this wrapper component to expose the functionality we want. This chapter focuses on both the project setup and the mechanics of building packages with RStudio. The following chapter focuses on the details of using Rcpp as a framework for connecting C++ and R.
The project setup in this case is slightly more involved than previously. ...