Quarto Demo

A how-to of syntax

tutorial
quarto
r
The art of the possible
Author

Matthew Scott

Published

July 19, 2024

A picture I drew one time

Abstract River

Last Modified: December 27, 2024

Click the code tools icon in the banner to see all Quarto code used in this article: </> Code

An example sentence - info

An example sentence - success

An example sentence - warning

An example sentence - danger

This is a demo using panels and code chunks:

import pandas as pd

# create a dataframe from a dictionary
df = pd.DataFrame({
    "Col1": [1, 2, 3, 4, 5, 6, 7],
    "Col2": [2, 3, 4, 5, 6, 7, 8]
})

print(df)
1
Annotate your code. 1) specify code-annotations ‘hover’ in yaml 2) highlight code with comments 3) write explainer text like this
library(dplyr)

# create dataframe the tidy way
df <- tibble(
    Col1 = c(1, 2, 3, 4, 5, 6, 7),
    Col2 = c(2, 3, 4, 5, 6, 7, 8)
)
print(df)

Fenced divs

You can add classes, attributes, and other identifiers to regions of content using divs and spans:

Borders

This content can be styled with a border

Callout notes

Note

Note that there are five types of callouts, including: note, tip, warning, caution, and important.

Tip with caption

Leave a tip in a caption box like this!

This one is collapsed and has no icon

Important with custom caption

A simplified callout note

In the margin

Look right

Check out this YouTube playlist with great talks on blogging!

Linking internally

Quite easy, just specify the relative folder path to get there from here: ../../about.qmd

Embed content as HTML