From aa7ee99ad216dcf3cbedf92920c46fea1ca8a7f0 Mon Sep 17 00:00:00 2001 From: Jeroen Ooms Date: Sat, 27 Dec 2025 15:12:40 +0100 Subject: [PATCH 1/2] Add commonmark to DESCRIPTION dependencies The `commonmark` and `xml2` packages are required for parsing the `NEWS.md` file, see `help('news', package = 'utils')`. Fixes https://github.com/r-universe-org/help/issues/649 --- DESCRIPTION | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 4d9a481..b766afa 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -30,6 +30,7 @@ Imports: callr, cli, codetools, + commonmark, graph, httr2, knitr, @@ -37,7 +38,8 @@ Imports: rvest, stringdist, tools, - utils + utils, + xml2 Suggests: BiocStyle, devtools, From 4a4b4ca92d44758d4e99c7e536a195f1cf8e0cde Mon Sep 17 00:00:00 2001 From: Jeroen Ooms Date: Sun, 28 Dec 2025 13:45:38 +0100 Subject: [PATCH 2/2] Add error message to output --- R/checks.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/checks.R b/R/checks.R index 3905edc..c54f7ad 100644 --- a/R/checks.R +++ b/R/checks.R @@ -513,7 +513,7 @@ checkNEWS <- function(pkgdir) }, error=function(e){ handleWarning( "news(package='", basename(pkgdir), "') failed with news file: ", - newsPath, ".", + newsPath, ":", e$message, "\nRefer to https://contributions.bioconductor.org/news.html", " to be included in Bioconductor release announcements." )