get_latest_version function

Get latest GitHub release version

Get latest GitHub release version

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

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

Arguments

  • gh_repo: [character ] GitHub repository in the format "owner/repo".
  • verbose: [logical ] Whether to print current and new remote fields (default: TRUE).

Returns

A character string with the version of the latest release.

Examples

get_latest_version("r-lib/usethis")

Other functions in releaser

Related functions from the same R package