Fall 2022 Literate Programming Workshops
Heidi Steiner, PSM | Data Science Educator
I am a health scientist and NOT a computer scientist!
I am very much still learning Quarto, RMarkdown, R, etc.
Content is a mixture of [RStudio Education materials](https://github.com/rstudio-education), CC-BY. All art (unless otherwise noted) is by [Desirée De Leon](https://desiree.rbind.io/) and [Allison Horst](https://www.allisonhorst.com/), CC-BY-NC-ND.
Quarto® is an open-source scientific and technical publishing system built to dramatically improve the process of creating and collaborating
Quarto documents, and other “literate programming” documents such as .rmd
and .ipynb
, include code, prose, and results in a single human-readable file
https://github.com/hidyverse/quarto-examples
to RStudioIntro_to_Quarto.qmd
, and render
Source ↔︎ output
Source → output
Source ↔︎ output
Source → output
.qmd
Update the YAML header of Intro_to_Quarto.qmd
to add a Table of Contents
Fold your code!
# Heading 1
This is a sentence with some **bold text**, some *italic text* and an
![image](image.png){fig-alt="Alt text for this image"}.
^^ Check out commonmark for a tutorial on common markup languages!
With or without the visual editor…
Add an image
Add a blockquote text section
Investigate Intro_to_Python.ipynb
(Hint: Can you open it?)
Find your Terminal within RStudio
Convert your ipynb
to qmd
with
quarto convert Intro_to_Python.ipynb
Render Intro_to_Python.qmd
quarto create-project mysite --type website
quarto preview mysite/
quarto render mysite/
_quarto.yml
file and PDF outputIn general, if it renders, it’s safe to send!
qmd
CSS
scss = CSS +
Quarto is a “batteries included” command line tool that shares syntax across output types/languages/editors
Learn about revealjs presentations in quarto from this slidedeck
Send me feedback! https://tinyurl.com/y2sbf58r