knitr::opts_knit$set(
  root.dir = file.path(Sys.getenv("HOME"), "github")
)
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  cache = TRUE,
  out.width = "100%"
)
options(tibble.print_min = 5, tibble.print_max = 5)

Compile NEWS files from several packages

Install and load

if (!requireNamespace("BiocManager", quietly = TRUE))
    install.packages("BiocManager")

if (!requireNamespace("newsfeed", quietly = TRUE))
    BiocManager::install("waldronlab/newsfeed")

library(newsfeed)

Optional packages

Moving to the base packages directory

Users should move one level up from the package directory to be able to find the NEWS files in the package:

setwd("..")

In this case, when compiling the Rmd file, I move one level up.

Compiling NEWS files

collect("newsfeed", render = FALSE)

Reading the NEWS

Here is how the NEWS collection would look if all NEWS files were written in NEWS.md format:

cat(readLines(
    collect("newsfeed", render = TRUE, raw = TRUE)
))


waldronlab/newsfeed documentation built on July 30, 2023, 1:22 a.m.