library(leaflet)
leaflet() %>%
addTiles() %>% # Add default OpenStreetMap map tiles
addMarkers(lat=54.9734625, lng=-1.6242486, popup="RSECon 2022")
RSE Conference 2022 | Newcastle Upon Tyne
Carlos Cámara-Menoyo | Cagatay Turkay | James Tripp
Centre for Interdisciplinary Methodologies (University of Warwick) | IT Services (University of Warwick)
Let’s get to know each other
Carlos Cámara
Research Software Engineer
Cagatay Turkay
Professor
James Tripp
Research Software Engineer
Let us know about your prior knowledge about quarto
About your preferred programming language:
About this workshop: Have you had time to read cases’ descriptions?
About us
We are not Quarto experts!
We are not affiliated in any way to Quarto or Posit. We do not have any commercial interest.
We are just quarto users who want to share our progress and engage with other users in a co-creation process with an attitude of healthy skepticism.
About the session
This is not (just) a talk about quarto. Others have done it very well before1. We will be presenting quarto’s main claims and putting them to a test (with your help).
About the slides
These slides have been created with quarto (of course!)
A brief overview to quarto
(that’s why we are here, right?)
JSON
file containing code, text and outputThis might be about to change with quarto
According to their creators1 (Posit -formerly RStudio)):
From a technical standpoint (Adapted from Mock, 2022):
Quarto is a command line interface (CLI) that renders mixed-format files (
.ipynb
/Jupyter notebook) OR plain text files (.qmd
,.rmd
,.md
) into different outputs (reports, books, websites, presentations…) , which can be in different formats (PDF/Word/HTML…) .
From a qmd
file…
---
title: "ggplot2 demo"
author: "Norah Jones"
date: "5/22/2021"
format:
html:
fig-width: 8
fig-height: 4
code-fold: true
---
## Air Quality
@fig-airquality further explores the impact of temperature
on ozone level.
```{r}
#| label: fig-airquality
#| fig-cap: Temperature and ozone level.
#| warning: false
library(ggplot2)
ggplot(airquality, aes(Temp, Ozone)) +
geom_point() +
geom_smooth(method = "loess"
)
```
Anatomy:
… to its output.
In this case, an html document (line 6) with text, code (folded -see line 9) and output.
Does this look familiar to you?
This is what happens behind the scenes for single file documents:
Not comprehensive (i.e. does not include projects, bibliographical references and cross-references -tables, figures, chapters-, add custom css, including files within files…)
From CLI:
quarto --help
Usage: quarto
Version: 0.9.563
Description:
Quarto CLI
Options:
-h, --help - Show this help.
-V, --version - Show the version number for this program.
Commands:
render [input] [args...] - Render input file(s) to various document types.
preview [file] [args...] - Render and preview a document or website project.
serve [input] - Serve a Shiny interactive document.
create-project [dir] - Create a project for rendering multiple documents
convert <input> - Convert documents to alternate representations.
pandoc [args...] - Run the version of Pandoc embedded within Quarto.
run [script] [args...] - Run a TypeScript, R, Python, or Lua script.
tools <command> [tool] - Installation and update of ancillary tools.
check [target] - Verify correct functioning of Quarto installation.
help [command] - Show this help or the help of a sub-command.
From your favourite IDE:
Additionally, we can add interactivity1 to the previous outputs:
R
, Python
, Julia
, Observable
):
pdf
, html
, epub
, docx
…Most of the “not so great” features derive from being under heavy development:
Rmarkdown
1These references introduce quarto way more extensively than we just did:
Your turn, now
2. Each case has a place in the room. Please go to the place for your corresponding case.
3. Form groups of 4 or 5. Say hi to your new friends
4. Choose Documentors and Spokesperson
cases/
cases/template/documentation_template.qmd
to your folder, which will be used to document the processPlease document the process!
See you at 16:00
For the large group discussion
For the large group discussion
Some ideas (but feel free to add yours!):
If you’ve enjoyed the workshop and want to keep exploring quarto, there are some things that can be done:
Carlos Cámara, carlos.camara@warwick.ac.uk, https://carloscamara.es/en
James Tripp, james.tripp@warwick.ac.uk
Cagatay Turkay, cagatay.turkay@warwick.ac.uk
https://bit.ly/rsecon22-quarto