show_news(): Support NEWS in Rd and md formats and under inst#2551
show_news(): Support NEWS in Rd and md formats and under inst#2551hadley merged 5 commits intor-lib:mainfrom
Conversation
Mirrors the search path documented in utils::news() for NEWS files. Uses the internal machinery of tools to build news databases.
|
I discovered that the NEWS-parsing machinery in If there are no valid entries, the In combination, it means that in a new package with a |
|
Thanks @acresu! I pulled out the finding into a separate function so we could test that, without being quite so vulnerable to changes in other news machinery in base R. |
Fixes #2499.
Exactly mirrors the search path documented in utils::news() for NEWS files rather than using the regex approach proposed in the issue.
The existing code could only handle plain NEWS files. In order to support the alternative formats, I had to mirror what
utils::newswas doing via internaltoolsmachinery intools:::.build_news_db().I added some tests partly to convince myself it was working. Perhaps you don't want to take all of these though since it's effectively exercising the internal functions in
toolsmore thandevtoolsper se.