Skip to content

Instantly share code, notes, and snippets.

@germayneng
Forked from cfljam/knitr_header.r
Created September 9, 2018 12:14
Show Gist options
  • Save germayneng/2bf146e4237c662277fc289ba349c135 to your computer and use it in GitHub Desktop.
Save germayneng/2bf146e4237c662277fc289ba349c135 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