В Mon, 27 Feb 2023 10:25:55 +0100 Riccardo Di Francesco <difrancesco.riccard...@gmail.com> пишет:
> Specifying C++11 is necessary to make my package work. How can I solve > this? Is it C++11 exactly or C++ ≥ 11? If the former, you're 100% right to specify this (but may have problems in unspecified future when someone decides to stop supporting C++11). If the latter, the answer is more complicated, especially if you want your package to continue working on older versions of R. My own solution is to use the default C++ standard on R ≥ 3.6.2, i.e. omit the CXX_STD specification entirely (which is at least C++11 there, and my code has been tested on C++11 to C++17), but explicitly request at least C++11 on R ≥ 3.1 using a configure script: https://github.com/aitap/Ropj/commit/cc94320bd5b8b68c879ff604787e71831fff8108 Prior to R-3.1, there seems to have been no way to ask for C++11, so I don't expect my code to work there. See also: this R-pkg-devel thread https://stat.ethz.ch/pipermail/r-package-devel/2023q1/008870.html -- Best regards, Ivan ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel