powered by
Use the GitHub API (github_api()) to obtain the tags of the releases.
github_api()
github_releases( repo, tag = "", pattern = "v[0-9.]+", use_jsonlite = loadable("jsonlite") )
A character vector of (GIT) tags.
The repository name of the form user/repo, e.g., "yihui/xfun".
user/repo
"yihui/xfun"
A tag as a character string. If provided, it will be returned if the tag exists. If tag = "latest", the tag of the latest release is returned.
tag = "latest"
A regular expression to match the tags.
Whether to use jsonlite to parse the releases info.
if (FALSE) { # interactive() xfun::github_releases("yihui/xfun") xfun::github_releases("gohugoio/hugo") }
Run the code above in your browser using DataLab