Skip to content

Instantly share code, notes, and snippets.

@jeffeaton
Last active January 23, 2020 03:28
Show Gist options
  • Save jeffeaton/538e8066fc339d3b7bb3565fb62eadfc to your computer and use it in GitHub Desktop.
Save jeffeaton/538e8066fc339d3b7bb3565fb62eadfc to your computer and use it in GitHub Desktop.
Simple YAML header for reports with `knitr::spin()`
#' ---
#' title: "<title>"
#' author: Jeff Eaton
#' output: pdf_document
#' ---
#'
##+ setup, include=FALSE
library(knitr)
opts_chunk$set(tidy=TRUE, warning=FALSE, cache=TRUE, message=FALSE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment