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

_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to