A 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.
Source
No formal rule. A cran-comments.md is a submission-workflow convention
rather than a CRAN requirement, which is why this check is opt-in and not
part of a default run. See
vignette("check-sources", package = "checktor") for how every check maps to its
source.
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(lab_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