Skip to content
Prev 10313 / 21318 Next

[Bioc-devel] Package reference manuals in html

On 23 December 2016 16:36, Laurent Gatto wrote:

            
And, NEWS.md does not work (yet?) with the news() function.

As a workaround to this, a regular expression such as the following
(this is the make recipe from [1])

 NEWS: #' create plain text NEWS from NEWS.md if available
         test -f ${PKGDIR}/NEWS.md && sed 's/^# .*$$\|^## //g' ${PKGDIR}/NEWS.md > ${PKGDIR}/NEWS

can convert the markdown version to a regular text file. This allows to
use the news() function and benefit from a nice only md version.

To keep things tidy, one can then add the NEWS.md in .Rbuildignore and
NEWS to .gitignore, to keep only the relevant file in the package
bundle/repo.

Laurent

[1] https://github.com/computationalproteomicsunit/maker