This is particularly important for a first CRAN release, where this goes by silently in R CMD Check but is something CRAN will reject you for 100% of the time.
It could be part of the roxygen note bits we put in the DESCRIPTION file, like:
Roxygen: list(markdown = TRUE, warn_no_return = TRUE, warn_no_examples = TRUE)
- Hadley also suggested it may be a bit more general, like
cran_warnings = TRUE
Then usethis::create_package() could set this for you automatically, or some other related usethis function.
This comes up a lot: