Enhancing scientific publishing through Quarto
Posit
July 8, 2024
Setting up your environment:
Download and install the latest versions of R, RStudio and Quarto:
A recent version of R (4.4 or higher)
The latest version of RStudio (2024.04.2-764
or higher)
The latest version of Quarto 1.5
available at https://quarto.org/docs/download/
Install the following packages:
The Linux Foundation and its project communities are dedicated to providing a harassment-free experience for participants at all of our events, whether they are held in person or virtually.
Linux Foundation events are working conferences intended for professional networking and collaboration within the open source community. They exist to encourage the open exchange of ideas and expression and require an environment that recognizes the inherent worth of every person and group. While at Linux Foundation events or related ancillary or social events, any participants, including members, speakers, attendees, volunteers, sponsors, exhibitors, booth staff and anyone else, should not engage in harassment in any form.
Christophe Dervieux
Take some time to see who can help you next to you!
To help you :
01:00
Some part dedicated to slides presentations
Some live demos that you can try to follow on your own
Some do-it-yourself exercises
Let’s benefit from being small room !
During non-exercise parts, or during transitions - raise your hand , and I’ll answer question for all.
During the exercises – too, and I’ll come help you.
I’m going to assume that you
know R Markdown with knitr and Markdown syntax,
have already worked with RStudio IDE,
want to know more about Quarto.
I’m going to teach you
Quarto syntax and formats,
Evolution compared to R Markdown,
How to go further with Quarto.
Yes - built on 10 years of knitr + rmarkdown -> Same principle…!
…but Quarto also opens up new horizons!
unifies + extends the R Markdown ecosystem
unifies + extends the R Markdown ecosystem
unifies for those who like R Markdown
unifies + extends the R Markdown ecosystem
unifies for those who like R Markdown
extends for people who don’t know R Markdown
The rmarkdown package and its ecosystem is still here
The R Markdown ecosystem continues to exist, and Quarto for R uses rmarkdown and knitr under the hood.
Illustrations by Alison Hill and Allison Horst, for RStudio.
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.
$ quarto --help
Usage: quarto
Version: 1.5.53
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.
quarto render
:Quarto comes “batteries included” straight out of the box
revealjs
)Feature | R Markdown | Quarto |
---|---|---|
Basic Formats |
typst_document |
|
Beamer | beamer_presentation | beamer |
PowerPoint | powerpoint_presentation | pptx |
HTML Slides | revealjs | |
Advanced Layout | Quarto Article Layout |
Feature | R Markdown | Quarto |
---|---|---|
Cross References | Quarto Crossrefs | |
Websites & Blogs | ||
Books | bookdown | Quarto Books |
Interactivity | Shiny Documents | Quarto Interactive Documents |
Journal Articles | rticles | Journal Articles |
Dashboards | flexdashboard | Quarto Dashboards |
05:00
To do together
simple-document.qmd
.Tip
simple-document.qmd
is available for download if required.
Let’s take a look at how to switch from Rmd to Quarto and produce documents…