-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
News file formatting #73
Comments
If useful, here's a validation of traditional NEWS files that I discovered some years ago. If it passes without "bad" entries, then R will render the content, e.g. news_check <- function(pathname = "NEWS", verbose = FALSE) {
db <- tools:::.news_reader_default(pathname)
bad <- which(attr(db, "bad"))
if (length(bad) == 0L) {
if (verbose) message(sprintf("All %s NEWS entries OK", nrow(db)))
return(invisible())
}
db[bad,]
} |
We already have that implemented or tried to but it still doesn't seem to pick it up all the time Line 1287 in 4687a90
|
There's also As for the format, maybe as part of this, there could be a companion issue at https://github.com/Bioconductor/bioconductor.org on explaining a bit more or showing more examples of the valid format(s). |
Agree > news(package="purrr")
Error in loadNamespace(name) : there is no package called 'commonmark' |
If you look at the code chunk I referenced it takes into account md files. |
Besides move to BiocCheckGitClone -- more complicated -- a poorly formatted NEWS file won't actually fail or cause an ERROR when being run -- need to figure out how to check syntax of output |
News file formatting check doesn't seem to always pick up on poorly-formatted news file.
The text was updated successfully, but these errors were encountered: