Quarto Tips and Tricks

Contents

  1. Markdown Basics

See this design: https://docs.prefect.io/latest/getting-started/installation/

Rmd to Quarto

Convert to Quarto with in-body chunck options:

knitr::convert_chunk_header("input.Rmd", "output.qmd")

input.Rmd:

```{r, echo=FALSE, eval=FALSE}
library(ggplot2)
ggplot(mtcars, aes(x = wt, y = mpg)) + geom_point()
```

output.qmd:

```{r}
# | echo: FALSE
# | eval: FALSE

library(ggplot2)
ggplot(mtcars, aes(x = wt, y = mpg)) + geom_point()
```

qmd to ipynb

Convert document.qmd to a Jupyter :

Terminal
quarto convert document.qmd

References

Quarto Markdown Basics