Re: [R-pkg-devel] New API in R-devel & minimum version of R

2025-04-04 Thread Michael Chirico
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

Re: [R-pkg-devel] New API in R-devel & minimum version of R

2025-03-24 Thread Dirk Eddelbuettel
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

Re: [R-pkg-devel] New API in R-devel & minimum version of R

2025-03-19 Thread Dirk Eddelbuettel
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

Re: [R-pkg-devel] New API in R-devel & minimum version of R

2025-03-19 Thread Ben Bolker
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