Re: [R-pkg-devel] length() conflict with C++17

2023-06-30 Thread Gábor Csárdi
Yeah, I think both `R_NO_REMAP` and rearranging the includes are good solutions, personally I would do both. There is a container at https://r-hub.github.io/containers/ if you want to make sure that you fixed everything: docker run -ti ghcr.io/r-hub/containers/clang17 bash Or, you can try the

[R-pkg-devel] length() conflict with C++17

2023-06-30 Thread Duncan Murdoch
rgl has a lot of C++ code which is now getting errors in the clang17 tests on CRAN: https://www.stats.ox.ac.uk/pub/bdr/clang17/rgl.log I haven't looked at the whole list yet, but many of the errors arise because R's include/Rinternals.h defines a length() macro, and that conflicts with a