Skip to content
Prev 8872 / 12125 Next

[R-pkg-devel] How to update "SystemRequirements: C++11"?

On 06/02/2023 4:01 p.m., Duncan Murdoch wrote:
Actually I can partially answer this:  the test is not based on 
SystemRequirements, but on the log of the build, which now contains 
lines like this:

   using C compiler: ?Apple clang version 12.0.0 (clang-1200.0.32.28)?
   using C++ compiler: ?Apple clang version 12.0.0 (clang-1200.0.32.28)?
   using C++11
   using SDK: ?MacOSX11.1.sdk?

I get "using C++11" because of this line in Makevars:

   CXX_STD = CXX11

So I guess the answer is to change your Makevars to make that line 
conditional on running under an old version of R.  If you figure out how 
to do that, could you post the recipe here?

Duncan Murdoch