Lint version consistency between NEWS.md and DESCRIPTION
Source:R/news_linter.R
lintVersionConsistency.RdChecks that the top NEWS.md header matches the package metadata: the
package name, version, and date in ## <Pkg> <version> - <date> must
equal the Package, Version, and Date fields in
DESCRIPTION. This catches a version bump that forgot to update the
changelog (or vice versa).
Examples
pkg_dir <- system.file(package = "gDRstyle", "tst_pkgs", "dummy_pkg")
lintVersionConsistency(pkg_dir)
#> Version consistency violations: OK!