get_changes function

Extract changelog entries for a given version

Extract changelog entries for a given version

Extracts the section of NEWS.md corresponding to a given version.

get_changes(path, version_number, verbose = TRUE)

Arguments

  • 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).

Returns

A character string containing the formatted changelog for the given version.

Examples

path_rjd3workspace <- system.file("rjd3workspace", package = "releaser") get_changes(path = path_rjd3workspace, version_number = "Unreleased") get_changes(path = path_rjd3workspace, version_number = "3.2.4") get_changes(path = path_rjd3workspace, version_number = "3.5.1")

Other functions in releaser

Related functions from the same R package