Get reference to the minimal version of the package.
for standard and CRAN-type of remote - this would use
pkgcache::cran_archive_list()
to obtain historical data.
for GitHub type of remote - this would use
gh::gh_gql()
to get list of all releases or tags and thengh::gh()
to downloadDESCRIPTION
file and then read package version.
Usage
get_ref_min(remote_ref, op = "", op_ver = "")
# S3 method for class 'remote_ref'
get_ref_min(remote_ref, op = "", op_ver = "")
# S3 method for class 'remote_ref_cran'
get_ref_min(remote_ref, op = "", op_ver = "")
# S3 method for class 'remote_ref_standard'
get_ref_min(remote_ref, op = "", op_ver = "")
# S3 method for class 'remote_ref_github'
get_ref_min(remote_ref, op = "", op_ver = "")
Arguments
- remote_ref
(
remote_ref
) object created withpkgdepends::parse_pkg_ref()
- op
(
character(1)
) optional, version condition comparison operator (e.g.">"
,">="
)- op_ver
(
character(1)
) optional, version number against whichop
argument is applied
Examples
get_ref_min(pkgdepends::parse_pkg_ref("bioc::MultiAssayExperiment"))
#> $package
#> [1] "MultiAssayExperiment"
#>
#> $atleast
#> [1] ""
#>
#> $version
#> [1] ""
#>
#> $ref
#> [1] "bioc::MultiAssayExperiment"
#>
#> $type
#> [1] "bioc"
#>
#> $params
#> character(0)
#>
#> attr(,"class")
#> [1] "remote_ref_bioc" "remote_ref" "list"
if (FALSE) { # Sys.getenv("R_USER_CACHE_DIR", "") != ""
get_ref_min(pkgdepends::parse_pkg_ref("cran::dplyr"))
}
if (FALSE) { # Sys.getenv("R_USER_CACHE_DIR", "") != ""
get_ref_min(pkgdepends::parse_pkg_ref("dplyr"))
}
if (FALSE) { # gh::gh_token() != ""
get_ref_min(pkgdepends::parse_pkg_ref("tidyverse/dplyr"))
}