Skip to content

Stop setting CXX_STD = CXX11 in use_rcpp_armadillo() - #2276

Open
jimhester wants to merge 1 commit into
r-lib:mainfrom
jimhester:fix-rcpp-armadillo-cxx-std
Open

jimhester wants to merge 1 commit into
r-lib:mainfrom
jimhester:fix-rcpp-armadillo-cxx-std

Conversation

@jimhester

@jimhester jimhester commented Sep 17, 2026 •

Copy link
Copy Markdown
Member

use_rcpp_armadillo() generated src/Makevars and src/Makevars.win with CXX_STD = CXX11, which triggers an R CMD check NOTE (Specified C++11: please drop specification unless essential).

C++17 has been the default since R 4.3.0, and RcppArmadillo's own skeleton Makevars now ships with CXX_STD commented out, so no replacement is needed, we can just remove this completely. This mirrors the earlier fix for use_cpp11() in 4a83ded (#1824).

Fixes #1889.

C++17 has been the default since R 4.3.0, so the specification is unnecessary and triggers a CRAN NOTE.

Fixes r-lib#1889.
@jimhester
jimhester force-pushed the fix-rcpp-armadillo-cxx-std branch from d628c8f to cf0416e Compare September 17, 2026 15:55
@jimhester
jimhester marked this pull request as ready for review September 17, 2026 15:57

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

usethis::use_rcpp_armadillo() Generates CXX_STD=CXX1, Leading to CRAN Note on C++11 Specification

1 participant