Skip to contents

Get current release version of package from GitHub

Usage

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 <- paste("r-lib", c("rlang", "testthat"), sep = "/")
print(repo)
#> [1] "r-lib/rlang"    "r-lib/testthat"
x <- getCurrentGitHubVersion(repo)
print(x)
#> [1] ‘1.0.2’ ‘3.1.4’