| Start |
|---|
| Extending Rcpp with Plugins Within C++, one can set different compilation flags using: List of the built-in plugins: |
| Inline Code Compile Rcpp features two functions that enable code compilation inline and exportation directly into R: Below is an example of compiling a C++ function within R. Note the use of To quickly understand a C++ expression use: |
| Rcpp Attributes Rcpp Attributes makes the process of working with R and C++ straightforward. The form of attributes take: The use of attributes is typically associated with: that is placed directly above a declared function header when reading in a C++ file via Below is an example of an external C++ file that uses attributes. To use this external C++ file within R, we do the following: |
| Specifying Additional Build Dependencies To use additional packages within the Rcpp ecosystem, the correct header file may not be Examples: |
Read Article
https://develop.horje.com/learn/1434/reference