Learn R Programming

releaser (version 1.0.0)

get_changes: Extract changelog entries for a given version

Description

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

Usage

get_changes(path, version_number, verbose = TRUE)

Value

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

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

Examples

Run this code
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")

Run the code above in your browser using DataLab