Quarto Code Block Options |> Table Contest

Quarto Code Block Options

Authors: Richard J Telford
twitter
GitHub

Abstract: echo? eval? Code block options for quarto documents and their interaction can be confusing for beginners. This interactive table shows the outcome of some commonly used options.

Full Description: When I was learning to use markdown, I found code block options confusing. What did I need to do to remove some unwanted output?

To help my students avoid this, I wanted to make a table to use in a tutorial for teaching quarto that would show the outcome for some important code block options.

After experimenting with static tables, I decided to use an interactive table.

The table uses reactable with interactivity provided by a slightly modified version of crosstalk (the "(All)" option is removed). Javascript is used to select the default option of each block when the page is loaded.


Table Type: interactive-HTML
Submission Type: Single Table Example
Table: RPubs - Quarto Chunk Option
Code: GitHub - richardjtelford/quarto-chunk-options
Cloud project: RStudio Cloud
Languages: Built with R: true. Built with Python: false.
Industries: .
Other packages: reactable, crosstalk (modified)

1 Like