Skip to content

cpp4r

1.1.0

Header-Only 'C++' and 'R' Interface

8packages depend
21.4Kdownloads / year
78.4%test coverage
13/13checks pass

Overview

About
Maintained by Mauricio Vargas SepulvedaFirst published 2025-10-167 releasesCRAN page ↗GitHub ↗

Provides a header only, 'C++' interface to 'R' with enhancements over 'cpp11'. Enforces copy-on-write semantics consistent with 'R' behavior. Offers native support for ALTREP objects, 'UTF-8' string handling, modern 'C++' features and idioms, and reduced memory requirements. Allows for vendoring, making it useful for restricted environments. Compared to 'cpp11', it adds support for converting 'C++' maps to 'R' lists, 'Roxygen' documentation directly in 'C++' code, proper handling of matrix attributes, support for nullable external pointers, bidirectional copy of complex number types, flexibility in type conversions, use of nullable pointers, and various performance optimizations.

Install

Health

CRAN checks
13OK
Slowest check: 1.4 min · r-oldrel-macos-x86_64
Code health
Yes
Tests · ratio 0.00
78.4%
Coverage · measured lines
100%
Documentation · exports
0
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
0%

Downloads

21.4K
CRAN downloads in the past year
Rank #1,943 · ~59/day · ~1.8K/mo
Daily download trend is not available in this view yet.
3.9K30 days
11.6K90 days
21.4K1 year
Compare downloads with other packages →
Also on633 r2u9 autocran344 conda_forge

Repository

Repository
7Stars
0Forks
0Open issues
0Open PRs
0Releases
42Commits
1Contributors
cpprstats
License Apache-2.0 · 42 commits · Last activity 2026-08-11 · 0% stars, 30d

Stars over time

2025-10-01 · 22026-07-07 · 7

Repository practices

Upstream repositoryBeta

6 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/pachadotdev/cpp4r on 2026-08-09.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
Makefile
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Governance and community (2)
Issue templatesSupport guide
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
2 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.0.0
Imports (0)
none
LinkingTo (0)
none
Suggests (2)
Enhances (0)
none

Code & Tests

People & History

People (2)
Maintainer (1)
Author, Maintainer
Authors (2)
Package Timeline

7 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 1.1.0Latest
    2026-07-21 · current release · diff ↗
  • 1.0.0
    2026-06-12 · diff ↗
  • 0.6.0
    2026-05-17 · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 0.5.1
    2026-04-15 · diff ↗
  • 0.5.0
    2026-04-13 · diff ↗
  • 0.4.0
    2025-12-04 · diff ↗
  • 0.3.0
    2025-10-16
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2025-10-16
Total releases
7 / 1 yrs
License
Apache License (>= 2)
Minimum R
≥ 4.0.0
Download size
56 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("cpp4r")
Vargas Sepulveda, M., & Posit Software, PBC, . (2026). cpp4r: Header-Only 'C++' and 'R' Interface (Version 1.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.cpp4r

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

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 cpp4r version 1.1.0 [Data set]. HJJB, LLC. Data release v2026-08-14. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-14, 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