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.
Examples
pkg_path <- example_diagnose_scenario("code_examples/tf_usage_bad.R",
show_content = FALSE)
file.remove(file.path(pkg_path, "NEWS.md")) # demonstrate the failing case
#> [1] TRUE
issues(diagnose_news_file(pkg_path, verbose = FALSE))
#> file line location
#> 1 <NA> NA No NEWS file found (add NEWS.md to document user-facing changes)
#> message
#> 1 NEWS file check