CRAN expects packages (especially on resubmission) to document user-facing
changes in a NEWS file. Accepts NEWS.md, NEWS, or NEWS.Rd at the
package root or under inst/.
Value
checktor_check_result() with passed, issues, message.
Source
No formal rule. A NEWS file is expected but not required, a convention
which is why this sits at opinion tier. See
vignette("check-sources", package = "checktor") for how every check maps to its
source.
Examples
pkg <- example_diagnose_scenario("code_examples/tf_usage_bad.R",
show_content = FALSE)
invisible(file.remove(file.path(pkg, "NEWS.md")))
lab_news_file(pkg, verbose = FALSE)$issues
#> [1] "No NEWS file found (add NEWS.md to document user-facing changes)"
unlink(pkg, recursive = TRUE)