Understand what parameterized reporting is and when it is useful.
Like very fancy custom functions:
Function β .qmd
template
Input β parameters
Output β rendered reports
Useful for creating variations of the same report:
Spatial: country, state, county, or city
Temporal: year, month or other time period
Anything you can filter by: breeds, species, diseases, water bodies, customers, trials, etc.
Note
We only covered reports, but you can also parameterize revealjs
presentations! See this Jumping Rivers blog post about it.
Convert a Quarto document into a parameterized template.
Render all variations of the report at once using {quarto} and {purrr}.
Generate multiple format outputs from the same .qmd using conditional content.
Create a div, span, or non-executable code block with one option from each of the below columns:
Class
.content-visible
.content-hidden
Attribute
when-format="___"
unless-format="___"
Format
latex
or pdf
epub
html
or revealjs
markdown
Generate multiple format outputs from the same .qmd using conditional code execution.
format
in the eval: !expr
chunk option.Generate multiple format outputs from the same .qmd using custom styling.
Pick a Bootswatch theme.
Customize with a .scss
file.
Use browser developer tools to find/test more styling.
π‘ Home for all workshop materials: jadeyryan.quarto.pub/cascadia-quarto/
π₯ Recordings from previous workshops & talks:
links in GitHub repo or my YouTube playlist
Letβs stay connected!