[R-pkg-devel] How to update "SystemRequirements: C++11"?
Duncan Murdoch
murdoch@dunc@n @end|ng |rom gm@||@com
Mon Feb 6 22:01:40 CET 2023
On 06/02/2023 3:46 p.m., Winston Chang wrote:
> I recently submitted a package to CRAN with "SystemRequirements: C++11".
> This raises the following NOTE on R-devel, and I was asked to fix and
> resubmit:
>
> * checking C++ specification ... NOTE
> Specified C++11: please update to current default of C++17
>
> If I understand correctly, I have two options, neither of which will work:
> 1. Remove "SystemRequirements: C++11" entirely. The problem with this is
> that on systems with older versions of R (3.6 and below, I believe), it may
> try to compile the package with an older C++ standard, which will fail.
> 2. Update it to "SystemRequirements: C++17". The problem here is that on
> systems that don't have a C++17 compiler, the package won't build -- even
> though the package only actually requires a C++11 compiler.
>
> How should I deal with this?
Are you allowed to say "C++11 or C++17"?
Duncan Murdoch
More information about the R-package-devel
mailing list