data.table is doing the same in a number of places, Ivan even went so far
as to pin down a specific SVN commit for those as well:
#if R_VERSION < R_Version(4, 5, 0) || R_SVN_REVISION < 86702
# define isDataFrame(x) isFrame(x) // #6180
#endif
https://github.com/Rdatatable/data.table/blob/09090480
On 19 March 2025 at 09:29, Michael Chirico wrote:
| data.table is doing the same in a number of places, Ivan even went so far
| as to pin down a specific SVN commit for those as well:
|
| #if R_VERSION < R_Version(4, 5, 0) || R_SVN_REVISION < 86702
| # define isDataFrame(x) isFrame(x) // #6180
On 19 March 2025 at 11:16, Ben Bolker wrote:
|FWIW Rcpp handles this (for CLOENV) with an ifdef:
|
| #if (defined(R_VERSION) && R_VERSION >= R_Version(4,5,0))
| return R_ClosureEnv(fun);
| #else
| return CLOENV(fun);
| #endif
FWIW Rcpp handles this (for CLOENV) with an ifdef:
#if (defined(R_VERSION) && R_VERSION >= R_Version(4,5,0))
return R_ClosureEnv(fun);
#else
return CLOENV(fun);
#endif
https://github.com/RcppCore/Rcpp/blob/257e1977cd6e251d0a3d691050a