Skip to content

Instantly share code, notes, and snippets.

@jananiravi
Created November 7, 2018 19:57
Show Gist options
  • Save jananiravi/316c827e71f4ebfb77491f8a32b06778 to your computer and use it in GitHub Desktop.
Save jananiravi/316c827e71f4ebfb77491f8a32b06778 to your computer and use it in GitHub Desktop.
knitr setup chunk for radix rmarkdown file (little redundant with the various width options; looking for suggestions)
```{r setup}
knitr::opts_chunk$set(
echo=TRUE, eval=TRUE,
warning=TRUE,
message=TRUE,
tidy=TRUE,
R.options=list(width=80),
tidy.opts=list(width.cutoff=80), # For code
width = 80,
# comment="##",
background="grey") # For output
options(cli.width = 60, width=60) # For tidyverse loading messages
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment