Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getRcppVersion

Export the Rcpp (API) Package Version


Description

Helper function to report the package version of the R installation.

Usage

getRcppVersion(devel = FALSE)

Arguments

devel

An logical value indicating if the development or release version number should be returned, default is release.

Details

While packageVersion(Rcpp) exports the version registers in DESCRIPTION, this version does get incremented more easily during development and can therefore be higher than the released version. The actual #define long used at the C++ level corresponds more to an ‘API Version’ which is now provided by this function, and use for example in the package skeleton generator.

Value

A package_version object with either the release or development version.

Author(s)

Dirk Eddelbuettel

See Also

Examples

getRcppVersion()

Rcpp

Seamless R and C++ Integration

v1.0.6
GPL (>= 2)
Authors
Dirk Eddelbuettel, Romain Francois, JJ Allaire, Kevin Ushey, Qiang Kou, Nathan Russell, Douglas Bates and John Chambers
Initial release
2021-01-14

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.