05:00
Session 1: Getting to know Quarto
Tuesday, July 18, 2023
---
title: "Anatomy of a Quarto Document"
---
## R
```{r}
head(mtcars)
```
## STATA
```stata
version 13
use censas
tabulate region
summarize marriage_rate divorce_rate median_age if state!="Nevada"
```
The script above is from the [Section 16.1](https://www.stata.com/manuals13/u16.pdf) of the *Stata 13 Manual*
knitr (R) or jupyter (python)# Heading_italics_, **bold**, `code`[linked phrase](http://example.com)```s.```stata```{r}| Feature | Quarto |
|---|---|
| Basic Formats | html, pdf, docx |
| Cross References | Quarto Crossrefs |
| Websites & Blogs | |
| Journal Articles | Journal Articles |
| Advanced Layout | Quarto Article Layout |
| Feature | Quarto |
|---|---|
| Beamer | beamer |
| PowerPoint | pptx |
| HTML Slides | revealjs |
| Books | Quarto Books |
| Interactivity | Quarto Interactive Documents |
| Dashboards | Coming soon! |
Indentation matters!
To avoid manually typing out all the options, every time when rendering via the CLI:
:There are multiple ways of formatting valid YAML:
::format: html with selections made with proper indentationLint, or a linter, is a static code analysis tool used to flag programming errors, bugs, stylistic errors and suspicious constructs.

RStudio + VSCode provide rich tab-completion - start a word and tab to complete, or Ctrl + space to see all available options.
my_first_doc.qmd again in RStudio.Ctrl + space in the YAML header to see the available YAML options.See PDF Format Guide if needed.
05:00