View source: R/api-update-news.R
update_news | R Documentation |
Lists all commits from a range (default: top-level commits since the most
recent tag) and adds bullets from their body to NEWS.md
.
Creates NEWS.md
if necessary.
update_news(messages = NULL)
messages |
A character vector of commit messages,
e.g. as in the |
None
# 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()
fledge::update_news(c("- something I forgot", "- blabla"))
fledge::update_version()
gert::git_add("NEWS.md")
gert::git_commit(message = "release notes tweaking")
fledge::tag_version()
print(fledge::get_last_tag())
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.