Skip to main content

Section 10.1 Introduction

Throughout this book, we have been writing R code in separate R scripts. This is great when we are writing code for ourselves. However, this entire book has been centered around reproducibility. An R script can be reproducible, but is limited in how well it communicates results, narrative, and output together in a single place. Sure, you can add comments to help explain what the code is doing, but it does not allow for much text. It also doesn’t show outputs, whether that’s visuals or numbers.
This is exactly where Quarto comes into play. With Quarto, you are able to:
  • Write code just as you would in an R script
  • Have dedicated spaces for text
  • Show outputs for numbers and visuals
  • Share with people outside of the R environment
In fact, this entire book was written using Quarto! Each chapter is a different Quarto document all put together. What is fantastic about Quarto is that it is built for the future. It can incorporate code other than R (such as Python), provide you with a better visual preview of your code (see SubsectionΒ 10.4.2), and is a true upgrade from traditional R Markdown.
In this chapter, we are going to go through the benefits of Quarto and how to properly utilize it.

Deeper dive into Quarto.

To learn even more about Quarto than this chapter provides, please go to their website: Quarto.