wood_github_latest: Get current package version on GitHub

View source: R/github-latest.R

wood_github_latestR Documentation

Get current package version on GitHub

Description

This function queries GitHub for the code of the current package version. This may reference a non-tagged commit; for the analysis of tagged commits only, see wood_github_versions().

Usage

wood_github_latest(package, user)

Arguments

package

character(1)
Name of a package to query for.

user

character(1)
Name of a user or organization.

Value

A character vector of version codes.

See Also

Functions for GitHub: wood_github_dependencies(), wood_github_packages(), wood_github_tags(), wood_github_versions()

Functions that query package versions: wood_bioc_version(), wood_core_version(), wood_cran_latest(), wood_cran_versions(), wood_github_versions(), wood_gitlab_latest(), wood_gitlab_versions(), wood_local_versions(), wood_runiverse_version(), wood_url_version(), wood_versions()

Examples


# Latest version code is returned
wood_github_latest("gglgbtq", "turtletopia")

# To get the latest *tagged* version code instead, use:
codes <- wood_github_versions("gglgbtq", "turtletopia")
versionsort::ver_latest(codes)


ErdaradunGaztea/woodendesc documentation built on Feb. 1, 2025, 2:26 a.m.