Get current release version of package from GitHub

getCurrentGitHubVersion(repo)

Arguments

repo

character. GitHub repository ("user/package"). Vectorized, supporting multiple requests in a single call.

Value

package_version. Package repo is defined in names.

Note

Updated 2021-08-23.

Examples

repo <- paste0("r-lib/", c("rlang", "testthat")) print(repo)
#> [1] "r-lib/rlang" "r-lib/testthat"
x <- getCurrentGitHubVersion(repo) print(x)
#> [1] ‘0.4.11’ ‘3.0.4’