Skip to content

[Rcpp-devel] RCPP_VERSION

1 message · Romain Francois

#
Hi,

The R api has R_VERSION and R_Version macros to allow conditional 
compiling based on the version of R. See : 
http://cran.r-project.org/doc/manuals/R-exts.html#Platform-and-version-information

So that users can do :

#if defined(R_VERSION) && R_VERSION >= R_Version(1, 9, 0)
...
#endif

Should we have something similar for Rcpp ?

#if defined(RCPP_VERSION) && RCPP_VERSION >= Rcpp_Version(0, 8, 5)
        ...
#endif

Romain