Intro Quarto @ Cascadia R Conf
Posit, PBC
While you wait for the workshop to begin, be sure you’ve got all the tools needed for the workshop:
Cascadia R Conference is dedicated to providing a harassment-free conference experience for everyone regardless of gender, gender identity and expression, sexual orientation, disability, physical appearance, body size, race, age or religion. We do not tolerate harassment of conference participants in any form. Sexual language and imagery is not appropriate for any conference venue, including talks. Conference participants violating these rules may be sanctioned or expelled from the conference without a refund at the discretion of the conference organizers.
Harassment includes verbal comments that reinforce social structures of domination related to gender, gender identity and expression, sexual orientation, disability, physical appearance, body size, race, age, religion; sexual images in public spaces; deliberate intimidation; stalking; following; harassing photography or recording; sustained disruption of talks or other events; inappropriate physical contact; and unwelcome sexual attention. Participants asked to stop any harassing behavior are expected to comply immediately.
If a participant engages in harassing behavior, the conference organizers may take any action they deem appropriate, including warning the offender or expulsion from the conference with no refund. If you are being harassed, notice that someone else is being harassed, or have any other concerns, please contact a member of conference staff immediately or email cascadiarcon@gmail.com. Conference staff will be happy to assist those experiencing harassment to feel safe for the duration of the conference. We value your attendance.
We expect attendees, sponsors, volunteers, and speakers to adhere to the code of conduct during the conference and in related online communities and social media. We will be monitoring all social media related to the conference throughout the year. If you have any questions, email cascadiarcon@gmail.com
Charlotte Wickham
Jadey Ryan
Lydia Gibson
Please share:
05:00
These materials are pitched at someone who:
knows some R
has worked in RStudio
wants to learn about Quarto
I’ll teach you
Quarto Workflow
Components of a Quarto Document
Specific features: markdown, tables, figures, callouts, code blocks
My turn:
Our Turn:
Your Turn: Practice exercises for you. Use your post-it notes.
Download and install the latest versions of R, RStudio, and Quarto:
Install the following packages:
Download and open the exercises for this session. The easiest way is to run this line of R code at the console in RStudio.
If that doesn’t work, you can download a zip file of the exercises here, then open the directory. The qmd files can be opened in RStudio.
Let’s get started!
With Quarto you can weave together narrative text and code to produce elegantly formatted output as documents, web pages, blog posts, books and more.
just like R Markdown…
but not just like it, there’s more to it…
Sit back and enjoy!
Open hello-penguins.qmd
in RStudio and . . .
10:00
Introducing the Quarto CLI
Quarto is a command line interface (CLI) that renders plain text formats (.qmd
, .rmd
, .md
) OR mixed formats (.ipynb
/Jupyter notebook) into static PDF/Word/HTML reports, books, websites, presentations and more.
Terminal
$ quarto --help
Usage: quarto
Version: 1.5.23
Description:
Quarto CLI
Options:
-h, --help - Show this help.
-V, --version - Show the version number for this program.
Commands:
render [input] [args...] - Render files or projects to various document types.
preview [file] [args...] - Render and preview a document or website project.
serve [input] - Serve a Shiny interactive document.
create [type] [commands...] - Create a Quarto project or extension
use <type> [target] - Automate document or project setup tasks.
add <extension> - Add an extension to this folder or project
update [target...] - Updates an extension or global dependency.
remove [target...] - Removes an extension.
convert <input> - Convert documents to alternate representations.
pandoc [args...] - Run the version of Pandoc embedded within Quarto.
typst [args...] - Run the version of Typst embedded within Quarto.
run [script] [args...] - Run a TypeScript, R, Python, or Lua script.
install [target...] - Installs a global dependency (TinyTex or Chromium).
uninstall [tool] - Removes an extension.
tools - Display the status of Quarto installed dependencies
publish [provider] [path] - Publish a document or project to a provider.
check [target] - Verify correct functioning of Quarto installation.
help [command] - Show this help or the help of a sub-command.
knitr
, jupyter
, or julia
engine evaluates R/Python/Julia code and returns a .md
file along with the evaluated code.md
file by Pandoc and converted to a final output formatquarto render
:quarto render
, andquarto_render()
.03:00
Quarto comes “batteries included” straight out of the box
revealjs
)Feature | Quarto | R Markdown |
---|---|---|
Basic Formats | ||
Beamer | beamer | beamer_presentation |
PowerPoint | pptx | powerpoint_presentation |
HTML Slides | revealjs | |
Advanced Layout | Quarto Article Layout |
Feature | Quarto | R Markdown |
Cross References | Quarto Crossrefs | |
Websites & Blogs | ||
Books | Quarto Books | bookdown |
Interactivity | Quarto Interactive Documents | Shiny Documents |
Journal Articles | Journal Articles | rticles |
Dashboards | Quarto Dashboards | flexdashboard |
You can render existing R Markdown documents with Quarto and you can rename them to .qmd
files to turn them into Quarto documents.
You don’t have to do this – R Markdown continues to be maintained.
However, Quarto
Offers “batteries included” shared syntax across formats
Allows you to choose your own editor and your preferred data science language
Comes with richer features out of the box
Is actively developed
Any questions / anything you’d like to review before we wrap up this module?
In RStudio, go to File > New File > Quarto document to create a Quarto document with HTML output. Render the document, which will ask you to give it a name – you can use my-first-document.qmd
.
Use the visual editor for the next steps.
Add a title and your name as the author.
Create two sections, one with things you would like to use Quarto for and a second with your favorite thing about R.
Add a table of contents.
Stretch goal: Change the html theme to sketchy
.
10:00