news {pkgnews} | R Documentation |
Read package news
Description
Retrieve the NEWS file of a package as a character vector.
Usage
news(package, installed_only = FALSE, allow_changelog = TRUE, width = NULL)
Arguments
package |
Character string giving the name of an R package. |
installed_only |
Only check installed packages. |
allow_changelog |
Whether to try and find a ChangeLog file if the NEWS can't be found. |
width |
An optional positive integer - see |
Value
A character vector containing the contents of the package's NEWS file
(or possibly the ChangeLog file, if allow_changelog = TRUE
). An error is
thrown if no news could be found.
Examples
## Not run: news("pkgnews")
[Package pkgnews version 0.0.2 Index]