Check that DESCRIPTION's Description field is a full paragraph
Source:R/check-description-length.R
cl_check_description_length.RdFlags a Description field that reads as a single short sentence
rather than the short paragraph (2+ sentences) the CRAN Cookbook
recommends. Sentence counting is a heuristic (splitting on ./!/?
followed by whitespace or end-of-string) and can be thrown off by
abbreviations; treat findings as a prompt to review, not gospel.
Examples
pkg_dir <- cl_example_pkg(
description = c(Description = "Does a thing.")
)
cl_check_description_length(pkg_dir)
#> # A tibble: 1 × 6
#> check file line severity message policy_reference
#> <chr> <chr> <int> <ord> <chr> <chr>
#> 1 description_length DESCRIPTION NA should_fix The Descript… https://contrib…
unlink(pkg_dir, recursive = TRUE)