Diagnose a Missing cran-comments.md File
Source:R/diagnostics-general.R
diagnose_cran_comments_file.RdA cran-comments.md file carries the submission notes CRAN reviewers read
(test environments, R CMD check results, downstream-dependency notes). Its
absence is flagged so it can be added before submission.
Value
checktor_check_result() with passed, issues, message.
Details
This check is opt-in: it is not part of the default checktor() /
diagnose_general_issues() run, because a cran-comments.md is a workflow
convention rather than a CRAN requirement. Call it directly to use it.
Examples
pkg_path <- example_diagnose_scenario("code_examples/tf_usage_bad.R",
show_content = FALSE)
file.remove(file.path(pkg_path, "cran-comments.md")) # failing case
#> [1] TRUE
issues(diagnose_cran_comments_file(pkg_path, verbose = FALSE))
#> file line location
#> 1 <NA> NA No cran-comments.md file with submission notes
#> message
#> 1 cran-comments file check