A C++11 Interface for R's C Interface
Overview
Provides a header only, C++11 interface to R's C interface. Compared to other approaches 'cpp11' strives to be safe against long jumps from the C API as well as C++ exceptions, conform to normal R function semantics and supports interaction with 'ALTREP' vectors.
- Fixed an issue where
cpp11::stop()andcpp11::warning()calls with the same template instantiation could cause a crash on some systems (#491, #295). cpp_source()now works with multiplefiles (#492).
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK13 OK2026-05-07
Show 3 earlier changesHide 3 earlier changes
- NOTE12 OK, 1 NOTE2026-05-02
- ERROR11 OK, 1 ERROR2026-04-25
- OK14 OK2026-03-10
Documentation
- Help pages
- 4 (1 internal)includes a package overview page
- Examples that run
- 100%3 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
- Get started with cpp11 HTML
- Converting from Rcpp HTML
- cpp11 internals HTML
- FAQ HTML
- Motivations for cpp11 HTML
Downloads
Repository
- PRs merged (all time)
- 73%
- Median days to close, 50 most recently updated closed issues
- 25
- Median days to close, 50 most recently updated closed PRs
- 206
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
17 development-tooling and community-health practices detected across 8 families in the upstream repository
Checks run against github.com/r-lib/cpp11 on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-05-07 · The repository has a site deploy workflow
pkgdown site last built 2026-05-06
Show all practicesHide 4 practices
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-01-21Seen in the repository: .claude, .claude/skillsNamed in .Rbuildignore: .claude
- GitHub Copilotfirst seen 2026-01-22Pull request: opened by its own account
Dependencies
Installing cpp11 adds no packages beyond those that come with R.
Show the 48 most downloaded dependentsHide the 48 most downloaded dependents
and 67 more dependents and 10 packages that suggest it on CRAN ↗
Code & Tests
People & History
Previously maintained by Romain François (0.4.2 to 0.4.3) and Jim Hester (0.1.0 to 0.4.1).
Pick two releases to compare their code metrics.
- 0.5.5Latest
- RR 4.6.0 released · 2026-04-24
- 0.5.42026-04-04 · diff ↗
- 0.5.32026-01-20 · diff ↗
- 0.5.2-22026-01-06 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 0.5.22025-03-04 · diff ↗
- 0.5.12024-12-04 · diff ↗
- 0.5.02024-08-27 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.4.72023-12-02 · diff ↗
- 0.4.62023-08-10 · diff ↗
- 0.4.52023-07-20 · diff ↗
- 0.4.42023-06-30 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.4.32022-10-12 · diff ↗
Show 16 earlier eventsHide 16 earlier events
- RR 4.2.0 released · 2022-04-22
- 0.4.22021-11-30 · diff ↗
- 0.4.12021-11-03 · diff ↗
- 0.4.02021-09-22 · diff ↗
- 0.3.12021-06-25 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 0.2.72021-03-29 · diff ↗
- 0.2.62021-01-29 · diff ↗
- 0.2.52021-01-12 · diff ↗
- 0.2.42020-11-05 · diff ↗
- 0.2.32020-10-14 · diff ↗
- 0.2.22020-10-01 · diff ↗
- 0.2.12020-08-11 · diff ↗
- 0.2.02020-08-10 · diff ↗
- 0.1.02020-07-10
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2020-07-10
- Total releases
- 25 / 6 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.0.0
- Download size
- 298 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("cpp11")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
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.