SC2

Statistical Computing 2

Interfacing R with C/C++


In this chapter we will see how R can be interfaced with C++ to speed up statistical computations. In particular, we will explain how functions written in C++ can be called from R via the .Call interface. We will then explain how the Rcpp package provides tools for seamlessly integrating R with C++, thus providing a better alternative to direct usage of R’s C API.

The chapter consists of the following sections: