update_pkg_versions() updates the version of packages listed in the DESCRIPTION file of R packages with their current versions.

If the package is a base package, the function will update the version to the previous minor version of the current R version. This is made to avoid errors with CI/CD.

update_pkg_versions(
  file = here::here("DESCRIPTION"),
  old_r_version = bump_back_r_version()
)

Arguments

file

(optional) A string indicating the path to the DESCRIPTION file (default: here::here("DESCRIPTION")).

old_r_version

(optional) A string indicating the previous minor version of the current R version (default: bump_back_r_version()).

Value

An invisible NULL. This function is used for its side effect.

See also

Other R system functions: raw_data_1(), raw_data_2()