d <- read.dcf("DESCRIPTION")
title <- d[colnames(d) == "Title"] cat(c("# ", paste(trimws(strsplit(title, "\n")[[1]]), collapse = " ")))
Github: https://github.com/randy3k/cliff
Documentation: https://randy3k.github.io/cliff
cat(d[colnames(d) == "Description"])
You can install the released version of cliff from CRAN with:
install.packages("cliff")
And the development version from GitHub with:
# install.packages("devtools") devtools::install_github("randy3k/cliff")
git <- function(...) cliff::run("git", ...) git("log", git("rev-parse", "--abbrev-ref", "HEAD"), "-n1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.