I am just starting to use Quarto in the latest version of Rstudio. However, I'm annoyed by the amount of space added between the command and the output in the R code chunk (rendered as pdf)
```{r}
3 + 1
```
You can add options to executable code like this
```{r}
#| echo: false
2 * 2
```
The `echo: false` option disables the printing of code (only output is displayed).

I am unable to find any references or global code chunk options to reduce this spacing. What is the usual R Markdown code chunk option for this?
You can try this solution.
As you know, Quarto by default uses the KOMA-Script classes.
If you change one of them (by default: scrartcl) to the standard document-class in LaTeX (f.e.: article) - space will be reduced.
format:
pdf:
documentclass: article

Good luck ;-)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With