R/api-bump-version.R

Defines functions bump_version

Documented in bump_version

#' Bump package version
#'
#' @description
#' Calls the following functions:
#'
#' @inheritParams update_version
#' @return None
#' @export
#'
#' @seealso [unbump_version()]
#'
#' @section Bumped too soon?:
#'
#' Have you just run `bump_version()`, then realized
#' "oh shoot, I forgot to merge that PR"?
#' Fear not, run [unbump_version()], merge that PR, run `bump_version()`.
#'
#' @example man/examples/bump-version.R
bump_version <- function(which = "dev") {
  check_which(which)
  check_clean(c("DESCRIPTION", news_path))
  with_repo(bump_version_impl(which))
}

Try the fledge package in your browser

Any scripts or data that you put into this service are public.

fledge documentation built on July 9, 2023, 7:41 p.m.