ABSTRACT

The performance of R language is always a problem of everyone's concern. There are many solutions to improve the performance of R, but due to its single-threaded kernel design, it is difficult to come out with leaps in its performance improvement. This chapter introduces three external technologies to help the performance of R language meet the requirements of production environment. It also introduces a method of calling C++ programs by using the Rcpp package of R language. A standard code template can be generated rapidly with RStudio, and the template can be in immediate use after a few adjustments. The Rcpp package is a communication package that communicates between R language and C++ language and it provides function calls between R and C++. The key of the calls is the matching of data types, which guarantees the data transmission between R and C++.