Update NEWS.md for a new release
NEWS.md for a new releaseModify the NEWS.md file of a package to replace the "Unreleased"
section with a new version heading and update GitHub comparison links.
update_news_md(path, version_number, verbose = TRUE)
path: [character ] Path to the package root directory.version_number: [character ] Current version number string (e.g. "1.2.3").verbose: [logical ] Whether to print current and new remote fields (default: TRUE).Invisibly returns TRUE if the file was successfully updated.
The argument version_number is the new version number to update the changelog.
path_rjd3workspace <- file.path(tempdir(), "rjd3workspace") file.copy( from = system.file("rjd3workspace", package = "releaser"), to = dirname(path_rjd3workspace), recursive = TRUE ) update_news_md(path = path_rjd3workspace, version_number = "1.2.3")
Related functions from the same R package
Useful links