Skip to content

Rcpp

1.1.2

Seamless R and C++ Integration

3,403packages dependsuggested by 40
23.4Mdownloads / year
98.8%test coverage
9/13flavors OK

Overview

About

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 1.1.2
  • Changes in Rcpp API:
  • Use of execinfo.h is again conditional to avoid build complexity (Dirk in 1445 addressing 1442)
  • An internal state component for Datetime is now int (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 dataptr again for better handling of empty vectors (Iñaki in 1462 fixing 1461)
  • Undefined behavior errors in use of ListOf proxies have been addressed (Iñaki in 1464 fixing 1463)
  • Under newer R version, R_UnboundValue is 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 AttributeProxyPolicy no longer rely on get__() (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

CRAN checks
4NOTE9OK
Check messages
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.

CRAN check page ↗

Slowest check: 3.8 min · r-devel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 1.1.2
READMEYes · 945 wordsVignettesYes · 10 · staticNEWSYes · mentions 1.1.2Citation fileYes · cites a publicationWebsiteYes
Cites a JSS article
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%

Downloads

23.4M
CRAN downloads in the past year
Rank #7 · ~64K/day · ~1.9M/mo
Daily download trend is not available in this view yet.
1.9M30 days
5.7M90 days
23.4M1 year
Compare downloads with other packages →
Also on309.5K r2u237 autocran1.7M conda_forge25K c2d4u

Repository

797Stars
219Forks
5Open issues
3Open PRs
48Releases
5,194Commits
85Commit identities
rrcppc-plus-pluscranr-packagec-plus-plus-14c-plus-plus-17c-plus-plus-20
License file reads as GPL-2.0 · 5,194 commits · Last activity 2026-10-13 · -0.3% stars, 30d · Default branch at 1.1.2.4, ahead of CRAN 1.1.2 (checked 2026-10-11) · Discussions: 4 posts
Responsiveness
How these are sampled
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

2025-10-08 · 7732026-10-03 · 797
PracticesBeta

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.

Continuous integration (1)
GitHub Actions
Governance and community (4)
Contributing guideIssue templatesPR templateFunding

Funding links: GitHub Sponsors

Coverage (1)
Coverage reporting (Codecov)
Lint, format, editor (2)
EditorConfigRStudio project
Show all practicesHide 1 practice
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

An outside contributor's pull request to this repository was written with an AI coding tool.

From outside contributors
  • Claude Code
    Pull requests: 1 from outside contributors, first on 2026-06-23, 1 from forks
How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
4 external dependencies (excludes base and recommended)

Installing Rcpp adds no packages beyond those that come with R.

Depends (1)
R >= 3.5.0
Imports (2)
methodsutils
LinkingTo (0)
none
Enhances (0)
none

People & History

People (9)
Author, Maintainer since 0.6.0 (2008)
Author · added in 0.10.0
Author · added in 1.0.13-1
Author · added in 2.12.0
Author · added in 0.7.1
Author · added in 0.12.0
Author · added in 0.12.8
Author · added in 1.0.13-1
Author · added in 3.0.3
Listed in earlier versions (7)
Show 7 peopleHide 7 people
no longer listed · 0.6.0 to 0.8.9
no longer listed · 0.6.3 to 0.8.9
no longer listed · 0.6.3 to 0.8.9
based on code written during 2005
no longer listed · 0.7.0 to 0.8.8
no longer listed · 0.7.10 to 1.0.13
a small portion of the code is based on code written during 2005
no longer listed · 2.12.1 to 0.8.9
no longer listed · 1.0.7 to 1.0.13
Releases (129)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • R
    R 3.2.0 released · 2015-04-16
  • R
    R 3.1.0 released · 2014-04-10
  • 3.0.3Latest
    record
    2014-02-02 · current release · diff ↗ ·
    added 1 export
    Rcpp.plugin.maker
  • 3.0.2
    record
    2013-06-23 · diff ↗
  • R
    R 3.0.0 released · 2013-04-03
Show 135 earlier eventsHide 135 earlier events

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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for Rcpp version 1.1.2 [Data set]. HJJB, LLC. Data release v2026-10-17. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy