Last active
June 28, 2017 18:17
-
-
Save sjessa/f28f12a9191eb539760d33faafe54209 to your computer and use it in GitHub Desktop.
My preferred knitr chunk settings for R Markdown documents
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```{r setup, echo = FALSE, message = FALSE, warning = FALSE} | |
knitr::opts_chunk$set(dev = "pdf", # Save figures as PDFs | |
fig.keep = "all", | |
fig.path = "figures/", # Figures are saved to this directory | |
message = FALSE, # Hide messages/warnings/errors from loading packages | |
warning = FALSE, | |
error = FALSE, | |
cache = TRUE) # By default, cache results to avoid re-running | |
# super long things every time you knit | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment