Rcpp
1.1.2Seamless R and C++ Integration
Overview
The 'Rcpp' package provides R functions as well as C++ classes which offer a seamless integration of R and C++. Many R data types and objects can be mapped back and forth to C++ equivalents which facilitates both writing of new code as well as easier integration of third-party libraries. Documentation about 'Rcpp' is provided by several vignettes included in this package, via the 'Rcpp Gallery' site at https://gallery.rcpp.org, the paper by Eddelbuettel and Francois (2011, doi:10.18637/jss.v040.i08), the book by Eddelbuettel (2013, doi:10.1007/978-1-4614-6868-4) and the paper by Eddelbuettel and Balamuta (2018, doi:10.1080/00031305.2017.1375990); see 'citation("Rcpp")' for details.
- Changes in Rcpp API:
- Use of
execinfo.his again conditional to avoid build complexity (Dirk in 1445 addressing 1442) - An internal state component for
Datetimeis nowint(Dirk in 1448 and 1449 fixing 1447) - Three new (in R 4.6.0) attribute accessors are used conditionally (Dirk in 1450 closing 1432)
- An UBSAN error in the Sugar-based NA comparison has been corrected (Iñaki in 1453 fixing 1452)
- Treatment of Inf outside of integer range in Sugar function has been corrected (Iñaki in 1458 fixing 1455)
- Integer overflow protection has been added for sugar functions (Iñaki in 1457 fixing 1454)
- The parent environment is now accessed via
R_ParentEnv(Dirk in 1460 fixing 1459) - Change to returning
dataptragain for better handling of empty vectors (Iñaki in 1462 fixing 1461) - Undefined behavior errors in use of
ListOfproxies have been addressed (Iñaki in 1464 fixing 1463) - Under newer R version,
R_UnboundValueis no longer used (Iñaki in 1466 fixing 1465) - New R API access point
R_getRegisteredNamespace()is used with current R versions (Dirk in 1469 fixing 1468)
Show all changes in 1.1.2Hide the rest of the changes in 1.1.2
- The
Nullable::as()exporter now uses an explicit cast to the templated type (Dirk in 1471 fixing 1470) - A memory leak in the variadic
Rcpp::warning()template has been fixed (Kevin in 1475 fixing 1474) - The
Nullable::operatorT()has been added as a 'opt-out' (Dirk in 1477 with coordination in 1472) - Add templated integer-index overload for
operator[]on small systems such as WASM (Jeroen Ooms in 1482) - The attribute accessors in
AttributeProxyPolicyno longer rely onget__()(Kevin in 1484 fixing 1483) - Changes in Rcpp Documentation:
- Reference in the bibliography used by the package vignettes have been updated.
- Changes in Rcpp Deployment:
- Excute permissions are set consistently on scripts with shebangs (Mattias Ellert in 1467)
- R 4.5.* has been added to the CI matrix (Dirk in 1476)
- Three nag messages issued when obsolete build flag accessors are used now show
Rcpp:::(Dirk in 1480 fixing 1456) - Reference GitHub Actions have been updated to their current versions (Dirk in 1481)
- Non-release Changes:
- A non-release hotfix 1.1.1-1 used by CRAN accommodates breaking changes to the API in R 4.6.0. It would be nice to have the same level of release management in R itself that CRAN expects from us.
From inst/NEWS.Rd in the release
Install
Health
NOTERd contentsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Rd files without \usage: ‘dependsAttribute.Rd’ ‘exportAttribute.Rd’ ‘interfacesAttribute.Rd’ ‘pluginsAttribute.Rd’ \arguments should not be documented without \usage.
NOTEforeign function callsr-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Registration problem: symbol ‘symbol’ in the local frame: .Call(symbol) See chapter ‘System and foreign language interfaces’ in the ‘Writing R Extensions’ manual.
- NOTE9 OK, 4 NOTE2026-09-25
- ERROR8 OK, 4 NOTE, 1 ERROR2026-09-18
- NOTE9 OK, 4 NOTE2026-09-08
- ERROR9 OK, 3 NOTE, 1 ERROR2026-09-07
- NOTE9 OK, 4 NOTE2026-09-01
Show 16 earlier changesHide 16 earlier changes
- ERROR8 OK, 4 NOTE, 1 ERROR2026-08-25
- NOTE11 OK, 2 NOTE2026-06-27
- ERROR10 OK, 2 NOTE, 1 ERROR2026-06-24
- NOTE11 OK, 2 NOTE2026-05-24
- ERROR10 OK, 2 NOTE, 1 ERROR2026-05-14
- NOTE11 OK, 2 NOTE2026-05-11
- ERROR10 OK, 2 NOTE, 1 ERROR2026-05-10
- NOTE11 OK, 2 NOTE2026-05-02
- ERROR9 OK, 2 NOTE, 1 ERROR2026-04-25
- NOTE9 OK, 5 NOTE2026-04-24
- ERROR8 OK, 5 NOTE, 1 ERROR2026-04-22
- NOTE9 OK, 5 NOTE2026-04-21
- ERROR8 OK, 5 NOTE, 1 ERROR2026-04-16
- NOTE7 OK, 7 NOTE2026-03-31
- ERROR7 OK, 6 NOTE, 1 ERROR2026-03-28
- NOTE9 OK, 5 NOTE2026-03-10
Documentation
- Help pages
- 32 (1 internal)includes a package overview page
- Examples that run
- 17%3 run in a plain check · 15 never run
- Exported functions with examples
- 63%
- Documented parameters
- 89%
- Return-value docs
- 81%
- Help pages citing references
- 13%
- Rcpp-attributes PDF
- Rcpp-extending PDF
- Rcpp-FAQ PDF
- Rcpp-introduction PDF
- Rcpp-JSS-2011 PDF
- Rcpp-libraries PDF
- Rcpp-modules PDF
- Rcpp-package PDF
- Rcpp-quickref PDF
- Rcpp-sugar PDF
Downloads
Repository
- PRs merged (all time)
- 91%
- Median days to close, 50 most recently updated closed issues
- 2
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
9 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/rcppcore/rcpp on 2026-10-11.
Funding links: GitHub Sponsors
Show all practicesHide 1 practice
An outside contributor's pull request to this repository was written with an AI coding tool.
- Claude CodePull requests: 1 from outside contributors, first on 2026-06-23, 1 from forks
Dependencies
Installing Rcpp adds no packages beyond those that come with R.
Show the 48 most downloaded dependentsHide the 48 most downloaded dependents
and 3,355 more dependents and 40 packages that suggest it on CRAN ↗
Code & Tests
People & History
Show 7 peopleHide 7 people
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- RR 3.1.0 released · 2014-04-10
- 3.0.3Latest
- 3.0.22013-06-23 · diff ↗
- RR 3.0.0 released · 2013-04-03
Show 135 earlier eventsHide 135 earlier events
- 3.0.02013-03-23 · diff ↗
- 2.15.32012-12-21 · diff ↗
- 2.15.22012-10-13 · diff ↗
- 2.15.12012-06-22 · diff ↗
- RR 2.15.0 released · 2012-03-30
- 2.14.22012-02-16 · diff ↗
- 2.14.1
- RR 2.14.0 released · 2011-10-31
- 2.13.22011-09-29 · diff ↗
- 2.13.12011-07-05 · diff ↗
- RR 2.13.0 released · 2011-04-13
- 2.13.02011-04-12 · diff ↗
- 2.12.22011-02-23 · diff ↗
- 2.12.1
- 2.12.02010-10-15 · diff ↗
- RR 2.12.0 released · 2010-10-15
- 2.11.1
- RR 2.11.0 released · 2010-04-22
- 2.11.02010-04-16 · diff ↗
- 2.10.12009-11-09 · diff ↗
- RR 2.10.0 released · 2009-10-26
- 2.10.02009-08-03 · diff ↗
- RR 2.9.0 released · 2009-04-17
- 2.9.02009-04-01 · diff ↗
- 2.8.12008-12-02 · diff ↗
- 1.1.22026-07-05 · diff ↗
- 1.1.1-1.12026-04-24 · diff ↗
- 1.1.1-12026-01-10 · diff ↗
- 1.1.12026-01-10 · diff ↗
- 1.1.0.8.22026-01-07 · diff ↗
- 1.1.0.8.12025-12-08 · diff ↗
- 1.1.0.8
- 1.1.02025-07-02 · diff ↗
- 1.0.142025-01-12 · diff ↗
- 1.0.13-12024-11-02 · diff ↗
- 1.0.132024-07-17 · diff ↗
- 1.0.122024-01-09 · diff ↗
- 1.0.112023-07-06 · diff ↗
- 1.0.102023-01-22 · diff ↗
- 1.0.92022-07-09 · diff ↗
- 1.0.8.32022-03-17 · diff ↗
- 1.0.8.22022-03-12 · diff ↗
- 1.0.82022-01-13 · diff ↗
- 1.0.72021-07-07 · diff ↗
- 1.0.62021-01-15 · diff ↗
- 1.0.52020-07-06 · diff ↗
- 1.0.4.62020-04-09 · diff ↗
- 1.0.42020-03-17 · diff ↗
- 1.0.32019-11-08 · diff ↗
- 1.0.2
- 1.0.12019-03-17 · diff ↗
- 1.0.02018-11-07 · diff ↗
- 0.12.192018-10-01 · diff ↗
- 0.12.182018-07-23 · diff ↗
- 0.12.172018-05-19 · diff ↗
- 0.12.162018-03-13 · diff ↗
- 0.12.152018-01-20 · diff ↗
- 0.12.142017-11-23 · diff ↗
- 0.12.132017-09-28 · diff ↗
- 0.12.122017-07-15 · diff ↗
- 0.12.112017-05-22 · diff ↗
- 0.12.102017-03-19 · diff ↗
- 0.12.92017-01-14 · diff ↗
- 0.12.82016-11-17 · diff ↗
- 0.12.72016-09-05 · diff ↗
- 0.12.62016-07-19 · diff ↗
- 0.12.52016-05-14 · diff ↗
- 0.12.42016-03-26 · diff ↗
- 0.12.32016-01-10 · diff ↗
- 0.12.22015-11-15 · diff ↗
- 0.12.12015-09-10 · diff ↗
- 0.12.02015-07-25 · diff ↗
- 0.11.62015-05-01 · diff ↗
- 0.11.52015-03-06 · diff ↗
- 0.11.42015-01-24 · diff ↗
- 0.11.32014-09-29 · diff ↗
- 0.11.22014-06-08 · diff ↗
- 0.11.12014-03-14 · diff ↗
- 0.11.02014-02-03 · diff ↗
- 0.10.6
- 0.10.52013-09-29 · diff ↗ ·
added 6 exports
loadRcppClass, RcppLdFlags, demangle, sizeof, cpp_object_initializer, cpp_object_dummy - 0.10.42013-06-24 · diff ↗
- 0.10.3
- 0.10.22012-12-21 · diff ↗
- 0.10.12012-11-27 · diff ↗
- 0.10.0
- 0.9.152012-10-14 · diff ↗
- 0.9.142012-10-01 · diff ↗
- 0.9.132012-06-29 · diff ↗
- 0.9.122012-06-25 · diff ↗
- 0.9.11
- 0.9.102012-02-17 · diff ↗
- 0.9.92011-12-27 · diff ↗
- 0.9.82011-12-22 · diff ↗
- 0.9.72011-09-30 · diff ↗
- 0.9.62011-07-27 · diff ↗
- 0.9.52011-07-06 · diff ↗
- 0.9.4
- 0.9.32011-04-05 · diff ↗
- 0.9.22011-02-24 · diff ↗
- 0.9.12011-02-14 · diff ↗
- 0.9.02010-12-22 · diff ↗
- 0.8.92010-11-28 · diff ↗
- 0.8.82010-11-03 · diff ↗
- 0.8.72010-10-16 · diff ↗
- 0.8.62010-09-17 · diff ↗
- 0.8.52010-07-26 · diff ↗
- 0.8.42010-07-15 · diff ↗
- 0.8.32010-06-29 · diff ↗
- 0.8.22010-06-10 · diff ↗
- 0.8.1
- 0.8.02010-05-17 · diff ↗
- 0.7.122010-04-16 · diff ↗
- 0.7.112010-04-02 · diff ↗
- 0.7.102010-03-16 · diff ↗
- 0.7.92010-03-13 · diff ↗
- 0.7.82010-03-09 · diff ↗ ·
removed 5 exports
RcppExample, print.RcppExample, RcppDateExample, RcppParamsExample, RcppVectorExample - 0.7.72010-02-14 · diff ↗
- 0.7.62010-02-13 · diff ↗
- 0.7.52010-02-09 · diff ↗
- 0.7.42010-01-31 · diff ↗
- 0.7.3
- 0.7.22010-01-13 · diff ↗
- 0.7.1
- 0.7.0
- 0.6.82009-11-10 · diff ↗
- 0.6.72009-11-08 · diff ↗
- 0.6.62009-08-04 · diff ↗
- 0.6.52009-04-03 · diff ↗
- 0.6.42009-03-02 · diff ↗
- 0.6.32009-01-11 · diff ↗
- 0.6.22008-12-04 · diff ↗
- 0.6.1
- 0.6.02008-11-06
- RR 2.8.0 released · 2008-10-20
Package metadata
- First published
- 2008-11-06
- Total releases
- 129 / 18 yrs
- License
- GPL (>= 2) OSI · relicensed from LGPL (>= 2.1) in 0.7.0
- Minimum R
- ≥ 3.5.0
- Download size
- 1.8 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("Rcpp")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.