usethis::use_rcpp_armadillo() Generates CXX_STD=CXX1, Leading to CRAN Note on C++11 Specification #1889
Labels
bug
an unexpected problem or unintended behavior
code 🖥️
R/, tests/
good first issue ❤️
good issue for first-time contributors
tidy-dev-day 🤓
Tidyverse Developer Day
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 generatessrc/Makevars
andsrc/Makevars.win
withCXX_STD=CXX1
. Runningdevtools::check()
subsequently raises a note: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:
usethis::use_rcpp_armadillo(name = "cppcode")
function.devtools::check()
.Expected Behavior:
The function should generate
src/Makevars
andsrc/Makevars.win
withoutCXX_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.
System Information:
The text was updated successfully, but these errors were encountered: