R/comapre.R
pac_compare_versions.Rdusing the remote github CRAN mirror to compare DESCRIPTION files dependencies between specific packages versions.
character a package name.
character an old version of package, default local version. Default: NULL
character a new version of package, default newest version. Default: NULL
character vector listing the types of dependencies, a subset of c("Depends", "Imports", "LinkingTo", "Suggests", "Enhances").
Character string "all" is shorthand for that vector, character string "most" for the same vector without "Enhances", character string "strong" (default) for the first three elements of that vector.
Default: c("Depends", "Imports", "LinkingTo")
character vector of search paths with local packages. Default: .libPaths()
character vector repositories URLs to use. Used only for the validation. Default https://cran.rstudio.com/
data.frame with 4 columns.
character package names.
character versions of dependencies required by an old package version.
character versions of dependencies required by a new package version.
numeric -1/0/1 which comes from utils::compareVersion function.
0 means that both versions have the same requirement. -1 means that the new version remove this requirement. 1 means that the new version added a new requirement.
if (FALSE) { # \dontrun{
pacs::pac_compare_versions("memoise", "0.2.1", "2.0.0")
pacs::pac_compare_versions("memoise", "0.2.1")
# local version to newest one
pacs::pac_compare_versions("memoise")
} # }