View source: R/gitlab-latest.R
wood_gitlab_latest | R Documentation |
This function queries GitLab for the code of the current package
version. This may reference a non-tagged commit; for the analysis of tagged
commits only, see wood_gitlab_versions()
.
wood_gitlab_latest(package, user)
package |
|
user |
|
A character vector of version codes.
Functions for GitLab:
wood_gitlab_dependencies()
,
wood_gitlab_packages()
,
wood_gitlab_tags()
,
wood_gitlab_versions()
Functions that query package versions:
wood_bioc_version()
,
wood_core_version()
,
wood_cran_latest()
,
wood_cran_versions()
,
wood_github_latest()
,
wood_github_versions()
,
wood_gitlab_versions()
,
wood_local_versions()
,
wood_runiverse_version()
,
wood_url_version()
,
wood_versions()
if (interactive()) {
# Latest version code is returned
wood_gitlab_latest("rock", "r-packages")
# To get the latest *tagged* version code instead, use:
wood_gitlab_versions("rock", "r-packages") |>
versionsort::ver_latest()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.