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
I'm trying to work through some new WARNINGs that I am experiencing *only* in
R-devel.
Found non-API calls to R: ‘BODY’, ‘CLOENV’, ‘ENCLOS’, ‘FORMALS’
Take FORMALS, for example. IIUC, we should now be using R_ClosureFormals
instead. However, my understanding is that this is available only in R 4