Add "_R_CHECK_PACKAGES_USED_IGNORE_UNUSED_IMPORTS_" = "false"
to check(cran = TRUE)
#2459
Labels
feature
a feature request or enhancement
Result of our discussions of hadley/r-pkgs#828
We think this NOTE should surface with
check(cran = TRUE)
:In R 4.1 and earlier,
R CMD check --as-cran
seems to actively result in_R_CHECK_PACKAGES_USED_IGNORE_UNUSED_IMPORTS_
being set totrue
(unused imports are ignored), which seems a bit perverse. In that case, it would be fiddly for us to makecheck(cran = TRUE)
surface this NOTE.However as of R 4.2, the env var seems to be settable in combination with
--as-cran
, so we should probably set it and just accept that the desired outcome will only happen as folks update R.The text was updated successfully, but these errors were encountered: