I would like to create an Rmarkdown document (pdf or html) that has some chunks \"executed\" conditionally. The particular case I have in mind is that I might want a more v
opts_chunk$set() is what you are after. Anything "set" will be the default for subsequent chunks (unless overwritten on a chunk-by-chunk basis)
opts_chunk$set()
```{r setup} library(knitr) opts_chunk$set(eval = TRUE, include= TRUE) ````
You can then alter as you see fit.