Quarto Tips and Tricks

Contents

  1. Markdown Basics
  2. Figures
  3. Tables
  4. Citations & Footnotes
  5. Cross-References
  6. Using Python
  7. Using R
  8. Execution Options
  9. Rendering
  10. Output Formats: HTML

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