finalize_version {fledge} | R Documentation |
Finalize package version
Description
Calls the following functions:
-
tag_version()
, settingforce = TRUE
if and only ifcommit_version()
amended a commit. Force-pushes the created tag to the
"origin"
remote, ifpush = TRUE
.
Usage
finalize_version(push = FALSE)
Arguments
push |
If |
Value
None
Examples
# 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()
# Edit news by hand
# ...
# Once done
fledge::finalize_version()
})
[Package fledge version 0.1.2 Index]