You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
usethis::use_rcpp_armadillo() Generates CXX_STD=CXX1, Leading to CRAN Note on C++11 Specification #1889
Issue: usethis::use_rcpp_armadillo() Generates CXX_STD=CXX1, Leading to CRAN Note on C++11 Specification
Description:
When using the usethis::use_rcpp_armadillo() function, it generates src/Makevars and src/Makevars.win with CXX_STD=CXX1 . Running devtools::check() subsequently raises a note:
checking C++ specification ... NOTE
Specified C++11: please drop specification unless essential
This issue creates a non-compliance with CRAN standards, requiring that the line, containing CXX_STD=CXX1, is manually removed in both files.
Steps to Reproduce:
Call the usethis::use_rcpp_armadillo(name = "cppcode") function.
Run devtools::check().
Observe the note regarding the C++11 specification.
Expected Behavior:
The function should generate src/Makevars and src/Makevars.win without CXX_STD=CXX1 or handle this in a way that aligns with CRAN's requirements.
Actual Behavior:
The line CXX_STD=CXX1 is generated, leading to a note during the check process, and manual removal is required to conform to CRAN.
Suggested Fix:
Either omit this line or handle it in a way that is compatible with CRAN standards.
Activity
jennybc commentedon Nov 3, 2023
For reference, here's where the equivalent already happened for
use_cpp11(): 4a83dedStop setting `CXX_STD = CXX11` in `use_rcpp_armadillo()`