Diagnose Title Starting With an Article
Source:R/diagnostics-description-title.R
lab_title_starts_with_article.RdFlags a Title beginning with A, An, or The.
Arguments
- path
Character. Path to the package directory. Default:
".".- verbose
Logical. Print diagnostic output. Default:
TRUE.- desc
Optional pre-parsed
DESCRIPTION, as returned bybase::read.dcf(). Defaults to reading it frompath.
Value
checktor_check_result() with passed, issues, message.
Source
No rule. This was a mis-transplant of a real CRAN rule and is kept
callable but off by default. See
vignette("check-sources", package = "checktor") for how every check maps to its
source.
See also
checktor(), which runs this and every other check.
Examples
pkg <- example_diagnose_scenario("description_examples/title_starts_with_article_bad.txt",
show_content = FALSE)
lab_title_starts_with_article(pkg, verbose = FALSE)$issues
#> [1] "Title starts with an article (A/An/The)"
unlink(pkg, recursive = TRUE)