This function queries the selected repositories for version codes of the selected packages and collects the unique occurences.
Arguments
- packages
character()
Names of the packages to query for.- repos
character()
A vector of repositories to query. The following values are available:"cran", meaning CRAN;"bioc@release", meaning Bioconductor, wherereleaseshould be replaced with a valid Bioconductor release code or one of"release","devel";"runiverse@universe", meaning R-universe, whereuniverseshould be replaced with a valid universe name (e.g.turtletopia);"github/user", meaning GitHub, whereusershould be replaced with a valid user or organization name (e.g.turtletopia);"gitlab/user", meaning GitLab, whereusershould be replaced with a valid user or group name (e.g.r-packages);"local#index", meaning a local library, whereindexshould be replaced with an integer index of a library inbase::.libPaths()or anallkeyword;"core", meaning base R packages;a URL if none of the above is matched.
See also
Functions for all repositories:
wood_dependencies(),
wood_packages()
Functions that query package versions:
wood_bioc_version(),
wood_core_version(),
wood_cran_latest(),
wood_cran_versions(),
wood_github_latest(),
wood_github_versions(),
wood_gitlab_latest(),
wood_gitlab_versions(),
wood_local_versions(),
wood_runiverse_version(),
wood_url_version()
Examples
wood_versions("woodendesc", c("local#all", "runiverse@turtletopia"))
#> $woodendesc
#> [1] "0.2.0" "0.2.1"
#>
# Multiple packages are also possible:
wood_versions(
c("ggplot2", "Biostrings", "woodendesc"),
repos = c("runiverse@turtletopia", "cran", "bioc@1.5")
)
#> $ggplot2
#> [1] "0.5" "0.5.1" "0.5.2" "0.5.4" "0.5.5" "0.5.6" "0.5.7"
#> [8] "0.6" "0.7" "0.8" "0.8.1" "0.8.2" "0.8.3" "0.8.4"
#> [15] "0.8.5" "0.8.6" "0.8.7" "0.8.8" "0.8.9" "0.9.0" "0.9.1"
#> [22] "0.9.2" "0.9.2.1" "0.9.3" "0.9.3.1" "1.0.0" "1.0.1" "2.0.0"
#> [29] "2.1.0" "2.2.0" "2.2.1" "3.0.0" "3.1.0" "3.1.1" "3.2.0"
#> [36] "3.2.1" "3.3.0" "3.3.1" "3.3.2" "3.3.3" "3.3.4" "3.3.5"
#> [43] "3.3.6" "3.4.0" "3.4.1" "3.4.2" "3.4.3" "3.4.4" "3.5.0"
#> [50] "3.5.1"
#>
#> $Biostrings
#> character(0)
#>
#> $woodendesc
#> [1] "0.1.0" "0.2.0"
#>
# By default, only CRAN is queried:
wood_versions("versionsort")
#> $versionsort
#> [1] "1.0.0" "1.1.0"
#>