github_latest_release_tag: Find the tag of a GitHub repository's newest release

View source: R/install-r.R

github_latest_release_tagR Documentation

Find the tag of a GitHub repository's newest release

Description

Reads the location header that ⁠https://github.com/<repo>/releases/latest⁠ redirects with and takes what follows ⁠/releases/tag/⁠. This page redirect is not subject to the hourly request limit of GitHub's API. The lookup never throws and never warns.

Usage

github_latest_release_tag(repo, timeout = 5)

Arguments

repo

Character string. The repository, as "owner/name".

timeout

Number. Seconds the request may take.

Value

Character string. The tag (e.g., "v4.6.2"), or NULL when it cannot be found.


shinyelectron documentation built on Dec. 3, 2026, 9:07 a.m.