Skip to content

RcppExamples

Examples using 'Rcpp' to Interface R and C++

v0.1.10 · Mar 17, 2025 · GPL (>= 2)

Description

Examples for Seamless R and C++ integration The 'Rcpp' package contains a C++ library that facilitates the integration of R and C++ in various ways. This package provides some usage examples. Note that the documentation in this package currently does not cover all the features in the package. The site <https://gallery.rcpp.org> regroups a large number of examples for 'Rcpp'.

Downloads

CRAN

353

Last 30 days

12592nd

768

Last 90 days

2.9K

Last year

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

r2u CRAN

25

Last 30 days

116

Last 90 days

406

Last year

Trend: -37.5% (30d vs prior 30d)

autoCRAN

5

Last 7 days

9

Last 30 days

3

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

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 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.6/RcppExamples.Rcheck/00install.out' for details.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Line coverage

Expression

Tests / Examples

Functions

38 9 exported

Complexity

1.2 avg / 3 max

Call network

38 nodes / 14 edges

Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

Compare versions

Code

Structure

Lines of code

1,182

Files

36

Compiled share

44.6%

Has compiled src

Yes

Language breakdown

R 276 (23.4%)C/C++/src 527 (44.6%)Docs 379 (32.1%)

API

Exported functions

9

Internal functions

7

Recent export changes

v2.15.2+1 RcppRNGs
v2.14.2+1 RcppDataFrame

Testing & CI

Has tests

No

Test-to-code ratio

0.00

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

25%

\dontrun example ratio

12.5%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

System requirements

C++ standard

License

GPL (>= 2)

License flags

SPDX valid, OSI approved

History

Versions

17

First release

2010-03-10

Latest release

2025-03-17

Avg cadence

140 days

Cold removal rate

100%

Dep drift

2

LOC over versions

v2.11.0: 1,542 LOCv0.1.0: 1,542 LOCv2.12.0: 1,532 LOCv0.1.1: 1,532 LOCv2.12.2: 1,726 LOCv0.1.2: 1,726 LOCv2.14.2: 1,871 LOCv0.1.3: 1,871 LOCv2.15.2: 1,996 LOCv0.1.4: 1,996 LOCv0.1.5: 1,090 LOCv2.15.3: 1,093 LOCv0.1.6: 1,093 LOCv0.1.7: 974 LOCv0.1.8: 994 LOCv0.1.9: 1,019 LOCv0.1.10: 1,182 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies Rcpp RcppExamples

Version History

12 tracked
new 0.1.10 Mar 10, 2026
updated 0.1.10 ← 0.1.9 diff Mar 16, 2025
updated 0.1.9 ← 0.1.8 diff Aug 24, 2019
updated 0.1.8 ← 0.1.7 diff Nov 23, 2016
updated 0.1.7 ← 0.1.6 diff Jan 23, 2016
updated 0.1.6 ← 0.1.5 diff Jan 15, 2013
updated 0.1.5 ← 0.1.4 diff Dec 27, 2012
updated 0.1.4 ← 0.1.3 diff Aug 9, 2012
updated 0.1.3 ← 0.1.2 diff Dec 29, 2011
updated 0.1.2 ← 0.1.1 diff Dec 21, 2010
updated 0.1.1 ← 0.1.0 diff Jul 29, 2010
new 0.1.0 Mar 10, 2010