get_current_tag: Find tag label of the currently checked out commit.

View source: R/git_sync.R

get_current_tagR Documentation

Find tag label of the currently checked out commit.

Description

Find tag label of the currently checked out commit.

Usage

get_current_tag(repo, tags_already_updated = FALSE)

Arguments

repo

dataset name: 'all_basiclevel', 'reliability', etc.

tags_already_updated

boolean, have the repository tags been updated recently? Avoids unnecessary fetching of the tags when multiple functions that use tags are called in succession.

Value

The latest version tag as a string

Examples

## Not run: 
all_bl <- get_all_basiclevel(version = '0.0.7')
current_tag <- get_current_tag('all_basiclevel')
stopifnot(current_tag == '0.0.7')

## End(Not run)

BergelsonLab/blabr documentation built on April 19, 2024, 7:21 p.m.