-
From this question, I was wondering how to use tidy options in the new chunk options, I thought something along these lines could work, but it does not:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 12 replies
-
There is no "=" in YAML, it's ":". To define it in code cell: ```{r}
#| eval: false
#| echo: true
#| tidy: true
#| tidy.opts:
#| - width.cutoff: 60
``` Or ```{r}
#| eval: false
#| echo: true
#| tidy: true
#| tidy.opts: { width.cutoff: 60 }
```
To define it globally, see https://quarto.org/docs/computations/r.html#knitr-options. |
Beta Was this translation helpful? Give feedback.
-
FWIW from next knitr version 1.44 (and from current dev version 1.43.7), all dash options are changed to their dot versions. This includes |
Beta Was this translation helpful? Give feedback.
There is no "=" in YAML, it's ":".
To define it in code cell:
Or
If the option with the "dash" notation does not work (it should I think), try with the "dot".To define it globally, see https://quarto.org/docs/computations/r.html#knitr-options.