cpp4r
1.1.0Header-Only 'C++' and 'R' Interface
Overview
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
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 0%
Downloads
Repository
Stars over time
Issues over time
PRs over time
Commits over time
Repository practices
6 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/pachadotdev/cpp4r on 2026-07-30.
Dependencies
Code & Tests
People & History
7 releases. Pick two to compare their code metrics. R releases are shown for context.
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