pac_compare_versions {pacs} | R Documentation |
Compare DESCRIPTION files dependencies between specific CRAN packages versions
Description
using the remote github CRAN mirror to compare DESCRIPTION files dependencies between specific packages versions.
Usage
pac_compare_versions(
pac,
old = NULL,
new = NULL,
fields = c("Imports", "Depends", "LinkingTo"),
lib.loc = .libPaths(),
repos = "https://cran.rstudio.com/"
)
Arguments
pac |
|
old |
|
new |
|
fields |
|
lib.loc |
|
repos |
|
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::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.
Examples
## Not run:
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")
## End(Not run)