Skip to content

cpp11

A C++11 Interface for R's C Interface

v0.5.5 · May 6, 2026 · MIT + file LICENSE

Description

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.

Downloads

1.6M

Last 30 days

12th

4.7M

Last 90 days

15.8M

Last year

Trend: +3.9% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 7, 2026
NOTE 12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 2, 2026
NOTE r-release-macos-x86_64

package vignettes

Package has ‘vignettes’ subdirectory but apparently no vignettes.
Perhaps the ‘VignetteBuilder’ information is missing from the
DESCRIPTION file?
ERROR 11 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 25, 2026
ERROR r-release-macos-x86_64

examples

Running examples in ‘cpp11-Ex.R’ failed
The error most likely occurred in:

> ### Name: cpp_source
> ### Title: Compile C++ code
> ### Aliases: cpp_source cpp_function cpp_eval
> 
> ### ** Examples
> 
> 
> cpp_source(
+   code = '#include "cpp11/inte
...[truncated]...
 [/Volumes/Temp/tmp/RtmpFf4VnE/file1d8b47240347/src/cpp11.o] Error 1
Warning message:
In system2("xcrun", "--show-sdk-version", TRUE, TRUE) :
  running command ''xcrun' --show-sdk-version 2>&1' had status 1
Error: Compilation failed.
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (107)

Dependency Network

Dependencies Reverse dependencies cpp11armadillo frontmatter tidyfast CMF EGM ProTrackR2 RMariaDB RPostgres RSQLite RcppAlgos RcppBigIntAlgos SpatialKDE adfExplorer ambient area +92 more reverse deps cpp11

Version History

updated 0.5.5 ← 0.5.4 diff May 6, 2026
updated 0.5.4 ← 0.5.3 diff Apr 3, 2026
new 0.5.3 Mar 10, 2026
updated 0.5.3 ← 0.5.2 diff Jan 19, 2026
updated 0.5.2 ← 0.5.1 diff Mar 3, 2025
updated 0.5.1 ← 0.5.0 diff Dec 3, 2024
updated 0.5.0 ← 0.4.7 diff Aug 26, 2024
updated 0.4.7 ← 0.4.6 diff Dec 1, 2023
updated 0.4.6 ← 0.4.5 diff Aug 9, 2023
updated 0.4.5 ← 0.4.4 diff Jul 19, 2023
updated 0.4.4 ← 0.4.3 diff Jun 29, 2023
updated 0.4.3 ← 0.4.2 diff Oct 11, 2022
updated 0.4.2 ← 0.4.1 diff Nov 29, 2021
updated 0.4.1 ← 0.4.0 diff Nov 2, 2021
updated 0.4.0 ← 0.3.1 diff Sep 21, 2021
updated 0.3.1 ← 0.2.7 diff Jun 24, 2021
updated 0.2.7 ← 0.2.6 diff Mar 28, 2021
updated 0.2.6 ← 0.2.5 diff Jan 28, 2021
updated 0.2.5 ← 0.2.4 diff Jan 11, 2021
updated 0.2.4 ← 0.2.3 diff Nov 4, 2020