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
You can set default chunk options *outside* the document just like you do it *inside*: | |
knitr::opts_chunk$set("foobar" = "baz") # set "foobar" = "baz" as default chunk option | |
Full example: | |
# `control.R` | |
library(rmarkdown) | |
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
\documentclass{article} | |
\begin{document} | |
<<setup, include=FALSE>>= | |
knitr::opts_chunk$set(echo = TRUE, max.print = NA) | |
@ | |
<<echo=FALSE, results='hide'>>= | |
library(DBI) |
NewerOlder