Extending R with C++: A Brief Introduction to Rcpp
The DOI matches its Crossref record; 11 of the 11 references it cites were found in a registry or an index.
Abstract
R has always provided an application programming interface (API) for extensions. Based on the C language, it uses a number of macros and other low-level constructs to exchange data structures between the R process and any dynamically loaded component modules authors added to it. With the introduction of the Rcpp package, and its later refinements, this process has become considerably easier yet also more robust. By now, Rcpp has become the most popular extension mechanism for R. This article introduces Rcpp, and illustrates with several examples how the Rcpp Attributes mechanism in particular eases the transition of objects between R and C++ code. Supplementary materials for this article are available online.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Modern Applied Statistics with S
Venables, W. N., & Ripley, B. D. (2002) · Statistics and Computing · doi:10.1007/978-0-387-21706-2 · Cited by 24,305 · cited 1×
“As noted in Venables and Ripley (2002), the Eigen decomposition is more stable in addition to being more computationally demanding compared to the Cholesky decomposition.”
MethodBootstrap methods: another look at the jackknife
Efron, B. (1979) · The Annals of Statistics · doi:10.1214/aos/1176344552 · Cited by 17,602
Anderson, E., Bai, Z., Bischof, C., Blackford, L. S., Demmel, J., Dongarra, J., Du Croz, J., Greenbaum, A., Hammarling, S., McKenney, A., et al. (1999) · Society for Industrial and Applied Mathematics eBooks · doi:10.1137/1.9780898719604 · Cited by 4,435 · cited 1×
“By outsourcing complex linear algebra operations to matrix libraries, the need to directly call functions within Linear Algebra PACK-age (LAPACK) (Anderson et al. , 1999) is negated.”
BackgroundDongarra, J. J., Moler, C. B., Bunch, J. R., & Stewart, G. W. (1979) · Society for Industrial and Applied Mathematics eBooks · doi:10.1137/1.9781611971811 · Cited by 1,738
Rcpp: Seamless R and C++Integration
Eddelbuettel, D., & François, R. (2011) · Journal of Statistical Software · doi:10.18637/jss.v040.i08 · Cited by 1,318
Self-citationArmadillo: a template-based C++ library for linear algebra
Sanderson, C., & Curtin, R. (2016) · The Journal of Open Source Software · doi:10.21105/joss.00026 · Cited by 623 · cited 9×
“One alternative is provided by the fastLm() function in RcppArmadillo (Eddelbuettel, François, and Bates 2017b).”
MethodInfluentialSeamless R and C++ Integration with Rcpp
Eddelbuettel, D. (2013) · Springer eBooks · doi:10.1007/978-1-4614-6868-4 · Cited by 452 · cited 2×
“And with the introduction of the Rcpp package (Eddelbuettel and François, 2011; Eddelbuettel, 2013; Eddelbuettel et al., 2018a), and its later refinements, this process of extending R has become considerably easier yet also more robust.”
MethodSelf-citationRcppArmadillo: Accelerating R with high-performance C++ linear algebra
Eddelbuettel, D., & Sanderson, C. (2014) · Computational Statistics & Data Analysis · doi:10.1016/j.csda.2013.02.005 · Cited by 451
Self-citationSoftware for Data Analysis: Programming with R
Chambers, J. (2008) · Statistics and Computing · doi:10.1007/978-0-387-75936-4 · Cited by 436 · cited 1×
“Chambers (2008) provided a very thorough discussion of desirable traits for a system designed to program with data, and the R system in particular.”
Backgrounddevtools: Tools to Make Developing R Packages Easier
Wickham, H., Hester, J., Chang, W., & Bryan, J. (2011) · CRAN: Contributed Packages · doi:10.32614/cran.package.devtools · Cited by 292
testthat: Get Started with Testing
Wickham, H. (2011) · The R Journal · doi:10.32614/rj-2011-002 · Cited by 223
Cited by
Chen, Y., Chen, L., Lun, A. T. L., Baldoni, P. L., & Smyth, G. K. (2025) · Nucleic Acids Research · doi:10.1093/nar/gkaf018 · Cited by 816
Helmus, R., ter Laak, T. L., van Wezel, A. P., de Voogt, P., & Schymanski, E. L. (2021) · Journal of Cheminformatics · doi:10.1186/s13321-020-00477-w · Cited by 208
Hoppen, T. H., Jehn, M., Holling, H., Mutz, J., Kip, A., & Morina, N. (2023) · Journal of Consulting and Clinical Psychology · doi:10.1037/ccp0000809 · Cited by 69
Metadata
- Authors
- Eddelbuettel, D., & Balamuta, J. J.
- Venue
- The American Statistician
- Publisher
- Informa UK Limited
- Published
- 2018-01-02
- Volume
- 72
- Issue
- 1
- Pages
- 28-36
- ISSN
- 0003-1305 (ISSN-L)
- 1537-2731
- OpenAlex
- W2748354746
- Cited by
- 209
- References
- 11
- FWCI
- 4.43
- Type
- journal article
- Language
- en
- Open access
- closed
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.