Learn R Programming

releaser (version 1.0.0)

get_latest_version: Get latest GitHub release version

Description

Retrieve the version number of the latest GitHub release for a repository and optionally print versions found across all branches.

Usage

get_latest_version(
  gh_repo = file.path("rjdverse", "rjd3toolkit"),
  verbose = TRUE
)

Value

A character string with the version of the latest release.

Arguments

gh_repo

[character] GitHub repository in the format "owner/repo".

verbose

[logical] Whether to print current and new remote fields (default: TRUE).

Examples

Run this code
# \donttest{
get_latest_version("r-lib/usethis")
# }

Run the code above in your browser using DataLab