r - How to specify global chunk option in a rmarkdown website? -
it possible create website several rmarkdown files. each rmarkdown file, can specify global options like:
```{r setup, include=false} knitr::opts_chunk$set(echo = false, message=false, warning=false) ```
if want apply these options rmd files, can put same code in each file.
i know if possible put code somewhere can shared every rmd files. in fact, sometimes, want make change (for example set echo = true), , want once entire website.
you can include child document
```{r, child="_setup.rmd"} ```
at beginning of each rmd file.
Comments
Post a Comment