-
Notifications
You must be signed in to change notification settings - Fork 4
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
BUG: NEWS.md are not found by utils::news() #40
Comments
Hmm... it's more complicated than I thought, because > f <- system.file("NEWS.md", package = "batchtools")
> n <- tools:::.news_reader_default(f)
> str(n)
Classes 'news_db' and 'data.frame': 1 obs. of 4 variables:
$ Version : chr NA
$ Date : chr NA
$ Category: chr NA
$ Text : chr "# batchtools 0.9.2\n\n* Full support for array jobs on Slurm and TORQUE.\n* Array jobs have been disabled for S"| __truncated__ |
Support for NEWS.md has been added to R-devel (wch/r-source@edad482), e.g. > f <- tools:::.build_news_db(package = "batchtools")
> str(f)
Classes ‘news_db_from_md’, ‘news_db’ and 'data.frame': 10 obs. of 5 variables:
$ Version : chr "0.9.10" "0.9.9" "0.9.8" "0.9.7" ...
$ Date : chr NA NA NA NA ...
$ Category: chr "" "" "" "" ...
$ Text : chr " - Exported functions findConfFile() and findTemplateFile().\n - Dropped support for providing a template fil"| __truncated__ " - RDS files are explicitly stored in version 2 to ensure backward\n compatibility with R versions prior to"| __truncated__ " - Renamed column \"memory\" in the status table to \"mem.used\" to avoid\n name clashes with the resource "| __truncated__ " - Added a workaround for a test to be compatible with testthat v2.0.0.\n - Better and more customizable hand"| __truncated__ ...
$ HTML : chr "<ul>\n<li>Exported functions <code>findConfFile()</code> and <code>findTemplateFile()</code>.</li>\n<li>Dropped"| __truncated__ "<ul>\n<li>RDS files are explicitly stored in version 2 to ensure backward compatibility with R versions prior t"| __truncated__ "<ul>\n<li>Renamed column "memory" in the status table to "mem.used" to avoid name clashes w"| __truncated__ "<ul>\n<li>Added a workaround for a test to be compatible with testthat v2.0.0.</li>\n<li>Better and more custom"| __truncated__ ...
- attr(*, "bad")= logi FALSE FALSE FALSE FALSE FALSE FALSE ...
> head(f, 2)
Changes in version 0.9.10
- Exported functions findConfFile() and findTemplateFile().
- Dropped support for providing a template file directly as string. A
valid file is now always required.
- Fixed writing to TMPDIR instead of the R session's temporary
directory.
Changes in version 0.9.9
- RDS files are explicitly stored in version 2 to ensure backward
compatibility with R versions prior to 3.5.0.
- Package fs is now used internally for all file system operations.
- Support for per-site configuration files and templates to be set up
by system administrators.
- The print of getStatus() now includes a time stamp.
- chunk() now optionally shuffles the ids before chunking.
- Support for setting per-job resources in submitJobs().
- Example templates now include resources for blas.threads and
omp.threads.
- Some bug fixes regarding read-only registries. |
It doesn't seem that For example news(package = "fs") But here is missing: help(package = "fs") |
Thanks. Looks like a bug/oversight to me. Could you please report this on the R-devel mailing list? |
Background
About
NEWS.md
files in packages:They're included in package during build
They're listed on CRAN (after being converted to HTML)
Issue
However,
utils::news()
don't report on them, e.g.Suggestion
Without having to worry about parsing
NEWS.md
and converting its format to HTML etc, it could be displayed as is, that is, just as if it was namedNEWS
.Troubleshooting
The problem comes from the fact that
tools:::.build_news_db()
does not look forNEWS.md
:It
doesn't look hard to do that(UPDATE: It's actually not straightforward; see comment below);See also
The text was updated successfully, but these errors were encountered: