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
if (!requireNamespace("BiocManager", quietly = TRUE)) install.packages("BiocManager") if (!requireNamespace("newsfeed", quietly = TRUE)) BiocManager::install("waldronlab/newsfeed") library(newsfeed)
render = TRUE in collect, the package will show an HTML
page of NEWS updatesUsers 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.
collect("newsfeed", render = FALSE)
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) ))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.