CRAN policy: package names (and software names in general) inside the Description field of a DESCRIPTION file must be wrapped in single quotes (e.g. 'jsonlite', 'httr'). An unquoted package name produces the Package names should be quoted in the Description field warning on CRAN incoming pretest.

audit_description(pkg = ".")

Arguments

pkg

Path to the package to audit.

Value

A tibble with columns word, position and suggestion. Empty when every match is already quoted, when the Description field is plain prose, or when the package has no DESCRIPTION.

Details

audit_description() reads the Description field, tokenises it, and surfaces every word that matches an installed package name yet is not wrapped in single quotes. Detection is purely static: no package is loaded, no namespace is touched.

Examples

if (FALSE) { # \dontrun{
audit_description(".")
} # }