Surfaces every call to personList(), as.personList() or citEntry() in the package's inst/CITATION file, with the line number and a one-line suggestion of the modern equivalent. CRAN rejects new submissions whose CITATION file still uses these (Package CITATION file contains call(s) to old-style ...).

audit_citation(pkg = ".")

Arguments

pkg

Path to the package to audit.

Value

A tibble with columns call, line, suggestion. Empty when the file is modern, or when there is no inst/CITATION.

Details

Detection is purely static (parse + token walk via utils::getParseData()), so it does not source the file and never executes user code.

Examples

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