Compare DESCRIPTION files dependencies between specific CRAN packages versions
Source:R/comapre.R
pac_compare_versions.Rdusing the remote github CRAN mirror to compare DESCRIPTION files dependencies between specific packages versions.
Arguments
- pac
charactera package name.- old
characteran old version of package, default local version. Default:NULL- new
charactera new version of package, default newest version. Default:NULL- fields
charactervector listing the types of dependencies, a subset ofc("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")- lib.loc
charactervector of search paths with local packages. Default:.libPaths()- repos
charactervector repositories URLs to use. Used only for the validation. Defaulthttps://cran.rstudio.com/
Value
data.frame with 4 columns.
- Package
character package names.
- Version.OLD
character versions of dependencies required by an old package version.
- Version.NEW
character versions of dependencies required by a new package version.
- version_status
numeric -1/0/1 which comes from
utils::compareVersionfunction. 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.