Package: Rcpp

Dirk Eddelbuettel

Rcpp: Seamless R and C++ Integration

The 'Rcpp' package provides R functions as well as C++ classes which offer a seamless integration of R and C++. Many R data types and objects can be mapped back and forth to C++ equivalents which facilitates both writing of new code as well as easier integration of third-party libraries. Documentation about 'Rcpp' is provided by several vignettes included in this package, via the 'Rcpp Gallery' site at <>, the paper by Eddelbuettel and Francois (2011, <doi:10.18637/jss.v040.i08>), the book by Eddelbuettel (2013, <doi:10.1007/978-1-4614-6868-4>) and the paper by Eddelbuettel and Balamuta (2018, <doi:10.1080/00031305.2017.1375990>); see 'citation("Rcpp")' for details.

Authors:Dirk Eddelbuettel, Romain Francois, JJ Allaire, Kevin Ushey, Qiang Kou, Nathan Russell, Inaki Ucar, Douglas Bates and John Chambers

Rcpp.pdf |Rcpp.html
Rcpp/json (API)

# Install Rcpp in R:
install.packages('Rcpp', repos = c('', ''))

Peer review:

Bug tracker:

Uses libs:
  • c++– GNU Standard C++ Library v3



26 exports 724 stars 23.17 score 0 dependencies 21258 dependents 1.2M downloads

Last updated 12 days agofrom:520797316ac797b28a24e91ca3c34eaed72605f7




Rendered fromRcpp-attributes.Rnwusingutils::Sweaveon Jun 05 2024.

Last update: 2019-10-27
Started: 2013-08-31


Rendered fromRcpp-extending.Rnwusingutils::Sweaveon Jun 05 2024.

Last update: 2019-10-27
Started: 2013-08-31


Rendered fromRcpp-FAQ.Rnwusingutils::Sweaveon Jun 05 2024.

Last update: 2019-10-27
Started: 2013-08-31


Rendered fromRcpp-introduction.Rnwusingutils::Sweaveon Jun 05 2024.

Last update: 2019-10-27
Started: 2013-08-31


Rendered fromRcpp-jss-2011.Rnwusingutils::Sweaveon Jun 05 2024.

Last update: 2019-10-27
Started: 2017-09-02


Rendered fromRcpp-libraries.Rnwusingutils::Sweaveon Jun 05 2024.

Last update: 2020-05-01
Started: 2020-05-01


Rendered fromRcpp-modules.Rnwusingutils::Sweaveon Jun 05 2024.

Last update: 2019-10-27
Started: 2013-08-31


Rendered fromRcpp-package.Rnwusingutils::Sweaveon Jun 05 2024.

Last update: 2019-10-27
Started: 2013-08-31


Rendered fromRcpp-quickref.Rnwusingutils::Sweaveon Jun 05 2024.

Last update: 2019-10-27
Started: 2013-08-31


Rendered fromRcpp-sugar.Rnwusingutils::Sweaveon Jun 05 2024.

Last update: 2019-10-27
Started: 2013-08-31

Readme and manuals

Help Manual

Help pageTopics
R / C++ interfaceRcpp-package Rcpp
completion.DollarNames,ANY-method .DollarNames,C++Object-method .DollarNames,Module-method .DollarNames-methods
Reflection information for an internal c++ class$,C++Class-method C++Class-class show,C++Class-method
Class "C++Constructor"C++Constructor-class
Class "C++Field"C++Field-class
Class "C++Function"C++Function-class show,C++Function-method
c++ internal objects$,C++Object-method $<-,C++Object-method C++Object-class show,C++Object-method
Class "C++OverloadedMethods"C++OverloadedMethods-class
Compile Rcpp Attributes for a PackagecompileAttributes
Check for Minimal (g++) Compiler VersioncompilerCheck
Define an R Function with a C++ ImplementationcppFunction
c++ type informationdemangle print.bytes sizeof
Rcpp::depends AttributedependsAttribute
Evaluate a C++ ExpressionareMacrosDefined evalCpp
Rcpp::export AttributeexportAttribute
Create an Rcpp Module to Expose a C++ Class in RexposeClass
Set the formal arguments of a C++ functionformals<-,C++Function-method formals<--methods
Export the Rcpp (API) Package VersiongetRcppVersion
Rcpp::interfaces AttributeinterfacesAttribute
Deprecated Rcpp Linker FlagsLdFlags RcppLdFlags
Load an Rcpp Module into a PackageloadModule
Loads Rcpp modules on package startuploadRcppModules
Retrieves an Rcpp moduleModule
Rcpp modules$,Module-method initialize,Module-method Module-class prompt,Module-method show,Module-method
Rcpp::plugins AttributepluginsAttribute
Populates a namespace or an environment with the content of a modulepopulate
Deprecated Functions in the Rcpp PackageRcpp-deprecated
Create a skeleton for a new package depending on RcppRcpp.package.skeleton
Facilitating making package pluginsRcpp.plugin.maker
Rcpp : unit tests resultsRcppUnitTests
Register an inline pluginregisterPlugin
Create a Class Extending a C++ ClassloadRcppClass RcppClass-class setRcppClass
Source C++ Code from a File or StringsourceCpp