Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

github_releases

Get the tags of Github releases of a repository


Description

Read the HTML source of the release page and parse the tags of the releases.

Usage

github_releases(repo, subpath = "", pattern = "(v[0-9.]+)")

Arguments

repo

The repository name of the form user/repo, e.g., "yihui/xfun".

subpath

A character string to be appended to the URL of Github releases (i.e., https://github.com/user/repo/releases/). For example, you may use subpath = "latest" to get the tag of the latest release.

pattern

A regular expression to extract the tags from the HTML source. It must contain a group (i.e., must have a pair of parentheses).

Value

A character vector of (GIT) tags.

Examples

if (interactive()) xfun::github_releases("yihui/xfun")

xfun

Miscellaneous Functions to Support Packages Maintained by 'Yihui Xie'

v0.22
MIT + file LICENSE
Authors
Yihui Xie [aut, cre, cph] (<https://orcid.org/0000-0003-0645-5666>), Wush Wu [ctb], Daijiang Li [ctb], Xianying Tan [ctb], Salim Brüggemann [ctb] (<https://orcid.org/0000-0002-5329-5987>), Christophe Dervieux [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.