RcppExamples-package: Examples for the Rcpp R/C++ Interface library

Description Details Author(s) See Also

Description

This package shows some simple examples for the use of Rcpp.

It can also serve as a working template to create packages that use Rcpp to interface C++ code or libraries.

A sibbling package RcppClassicExamples provides some examples for the deprecated older API still being made available via the RcppClassic package. New development should use Rcpp instead.

Details

The Rcpp package provides a number of C++ classes that ease access to C++ from R. This comprises both passing parameters to functions, as well as returning results back from C++ to R.

Two APIs are supported. The first is an older API which was first introduced mostly in 2006, extended in 2008 and deprecated in 2009. This interface is used by a few other packages and will be supported going forward, but not extended. A second and newer API was started in 2009 offers more functionality: Rcpp

The RcppExamples package provides some simple examples for use of Rcpp. At this point the documentation is not complete in the sense of not covering all accessible classes. However, several basic use cases are illustrated,

Author(s)

Dominick Samperi wrote the initial versions of Rcpp (and RcppTemplate) during 2005 and 2006. Dirk Eddelbuettel made some additions, and became maintainer in 2008. Dirk Eddelbuettel and Romain Francois have been extending Rcpp since 2009.

See Also

The http://gallery.rcpp.org site regroups a number of examples.


RcppExamples documentation built on May 2, 2019, 4:46 p.m.