Quarto® is an open-source scientific and technical publishing system built on Pandoc
Batteries included, shared syntax across output types and languages
Choose your own editor and your preferred data science language
RMarkdown still maintained, but majority of new features built into Quarto
So what is Quarto?
quarto is a language agnostic command line interface (CLI)
jeremyallen$ quarto --help
Usage: quarto Version: 1.3.197Description:Quarto CLIOptions:-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 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. add<extension> - Add an extension to this folder or project install [target...] - Installs an extension or global dependency. publish [provider] [path] - Publish a document or project. Available providers include:check [target] - Verify correct functioning of Quarto installation. help [command] - Show this help or the help of a sub-command.
RMarkdown for literate programming
Quarto for literate programming
Quarto for literate programming
What does Quarto look like in the RStudio IDE?
Quarto - Visual Editor
Format
Insert
Table
Static documents
A static document is your “daily driver” - has the power for a complex table of contents, figure alignment, control of ouptut/code, and other niceties
Useful as a lab notebook, scratchpad, or the final output for your team
Most powerful as the combination of written thoughts and observations along with source code
Parameters
You may have a set of parameters that are used to create different variations of a report. For example:
Showing results for a specific geographic location.
Running a report that covers a specific time period.
Running a single analysis multiple times for different assumptions.
Parameters
Python - Papermill style
#| tags: [parameters]alpha = 0.1ratio = 0.1
str(alpha)
R - YAML style
---
title: "My Document"
params:
alpha: 0.1
ratio: 0.1
---
We have data about `r nrow(penguins)` penguins. Only`r diff_rows` are classified as `r params$species`. The distribution of the `r params$species` penguins are shown below:
The tex templates were written by Eli Holmes and the lua filter along with changes to the Pandoc templates to allow themes was written by Mickaël Canouil. . . .