r-lib / cpp11

cpp11 helps you to interact with R objects using C++ code.
https://cpp11.r-lib.org/
Other
199 stars 46 forks source link

Mac R 4.2 cpp11test failure #280

Closed DavisVaughan closed 2 years ago

DavisVaughan commented 2 years ago
test-doubles.cpp:187:38: error: use of undeclared identifier 'R_compact_intrange'
    SEXP x = PROTECT(Rf_coerceVector(R_compact_intrange(1, 5), REALSXP));
test-doubles.cpp:221:48: error: use of undeclared identifier 'R_compact_intrange'
    cpp11::writable::doubles z(Rf_coerceVector(R_compact_intrange(1, 5), REALSXP));
test-doubles.cpp:239:48: error: use of undeclared identifier 'R_compact_intrange'
    cpp11::writable::doubles z(Rf_coerceVector(R_compact_intrange(1, 5), REALSXP));
                                               ^

We get these errors because R_compact_intrange() was moved from Rinternals.h to the private Defn.h in this commit https://github.com/wch/r-source/commit/86b4a0641e889808ce204e28dd8bd19bbd1c8cbb

I guess we should figure out a way to avoid or swap out these tests