Create new branch in repo
create_new_branch.Rd
By default it will create a new branch in aux PIP repo, but it can create a new branch in repo
Arguments
- measure
character: measure to be loaded
- owner
character: Github repo owner. Default is
getOption("pipfun.ghowner")
- repo
character: name of the repo
- release
character: date in the form "%Y%m%d"
- identity
character: for PIP repos it must be one of
c("PROD", "INT", "TEST")
. For other repos, just leave de default, which is 'PROD'.- ref_branch
Character: reference branch from which the new branch will be created.
- new_branch
character: name of new branch. Default is
paste0(release, "_", identity)
- verbose
A logical: whether to print detailed messages about the process. The default is
TRUE
Examples
if (FALSE) { # \dontrun{
# success
create_new_branch("regions",
release = "20240903")
create_new_branch("regions",
new_branch = "test")
# Fail
create_new_branch("fjfjf",
new_branch = "test") |>
try()
} # }