Skip to content

Instantly share code, notes, and snippets.

@cfljam
Last active September 9, 2018 12:14
Show Gist options
  • Save cfljam/1354736a0712c754dd01 to your computer and use it in GitHub Desktop.
Save cfljam/1354736a0712c754dd01 to your computer and use it in GitHub Desktop.
Global Options Chunk for Knitr in RMarkdown Documents
###
### Thanks to Karl Broman http://kbroman.org/knitr_knutshell/pages/Rmarkdown.html
```{r global_options, include=FALSE}
rm(list=ls()) ### To clear namespace
library(knitr)
opts_chunk$set(fig.width=12, fig.height=8, fig.path='Figs/',
echo=TRUE, warning=FALSE, message=FALSE)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment