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

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -