# Rcpp

> Seamless R and C++ integration

Source: https://talira.ai/catalog/rcpp-3snb4gae
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [developer tools / language bindings](https://talira.ai/categories/developer-tools/language-bindings), [languages / r](https://talira.ai/categories/languages/r)
- Platforms: linux, macos, windows[^1]
- Licence: GPL-2.0-or-later[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Self-hostable: no[^1]
- Backed by: [RcppCore](https://talira.ai/orgs/rcppcore.md)

Rcpp is an R package that integrates R and C++: R functions and C++ classes map R's data types and objects to C++ equivalents and back, so slow R code can be rewritten in C++ and third-party C++ libraries used from R. cppFunction() compiles a C++ function given as a string, sourceCpp() compiles a C++ file and exports functions marked with an attribute, and packages can build their compiled code on it. It is documented in several vignettes, the Rcpp Gallery of over a hundred tested examples, papers and a book, and more than 3,000 CRAN packages use it.

## Links

- Website: https://www.rcpp.org/
- GitHub: https://github.com/RcppCore/Rcpp
- Docs: https://gallery.rcpp.org/

## Problems it solves

- speed up a slow loop in my R code by rewriting it in C++
- call a C++ library from R
- write an R package with compiled C++ code

## Features

- maps R data types and objects to C++ and back
- cppFunction() to compile inline C++
- sourceCpp() with exported functions
- build R packages with compiled C++ code
- use third-party C++ libraries from R
- vignettes and the Rcpp Gallery of tested examples

## Trust

Overall: 0.54 out of 1.
Signals: maintenance 0.79, adoption 0.58, momentum 0.24, community 0.78, backing 0.30, extensibility 0.00.

- last commit today
- 28 commits in the last 90 days
- latest release 1.1.2 4 months ago
- 796 GitHub stars
- 86 contributors
- accepts sponsorship (Github)
- backed by RcppCore

## Sources

[^1]: https://cran.r-project.org/web/packages/Rcpp/index.html (checked 24 Nov 2026)
