Skip to contents

Uses gh::gh() to fetch the latest GitHub release of the specified GitHub repository via GitHub's REST API and returns it as a numeric version.

Usage

gh_release_latest(owner, name)

Arguments

owner

GitHub repository owner (GitHub user or organisation). A character scalar.

name

Repository name. A character scalar.

Value

A numeric version.

See also

Other GitHub functions: gh_dir_ls(), gh_releases(), gh_text_file(), gh_text_files()

Examples

yay::gh_release_latest(owner = "jgm",
                       name = "pandoc")
#> # A tibble: 1 × 4
#>          id version_nr is_pre_release is_draft
#>       <int> <nmrc_vrs> <lgl>          <lgl>   
#> 1 150113892 3.1.13     FALSE          FALSE