Skip to contents

Parse NEWS.md into structured versioned entries

Usage

parse_pkg_news(path, since_version = NULL)

Arguments

path

Path to a package folder (with NEWS.md) or directly to a NEWS.md file.

since_version

Optional package version string. If supplied, only versions strictly newer than this one are returned. If the exact version is missing in the NEWS file, the nearest newer version will be used as the cutoff.

Value

An object of class pkg_news: a named list where names are version strings and values are single-character strings with the news contents for each version. The package name is attached as the package attribute.