View source: R/api-unbump-version.R
unbump_version | R Documentation |
This undoes the effect of a bump_version()
call, with a safety check.
unbump_version()
NULL
, invisibly. This function is called for its side effects.
None
bump_version
# Create mock package in a temporary directory.
# Set open to TRUE if you want to play in the mock package.
with_demo_project({
# Use functions as if inside the newly created package project.
# (Or go and actually run code inside the newly created package project!)
# Add a new R file.
usethis::use_r("cool-function", open = FALSE)
# Pretend we added useful code inside it.
# Track the new R file with Git.
gert::git_add("R/cool-function.R")
gert::git_commit("- Add cool function.")
# Bump version with fledge.
fledge::bump_version()
# Oh no, we forgot to also add the awesome function for that version!
# UNBUMP
fledge::unbump_version()
# Add a new R file.
usethis::use_r("awesome-function", open = FALSE)
# Pretend we added awesome code inside it.
# Track the new R file with Git.
gert::git_add("R/awesome-function.R")
gert::git_commit("- Add awesome function.")
# Bump version with fledge.
fledge::bump_version()
#'
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.