[Rcpp-devel] RCPP_VERSION

Romain Francois romain at r-enthusiasts.com
Wed Aug 18 08:41:56 CEST 2010


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

-- 
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://bit.ly/bzoWrs : Rcpp svn revision 2000
|- http://bit.ly/b8VNE2 : Rcpp at LondonR, oct 5th
`- http://bit.ly/aAyra4 : highlight 0.2-2



More information about the Rcpp-devel mailing list