Quarto vs RMarkdown
This lesson is called Quarto vs RMarkdown, part of the R in 3 Months (Fall 2022) course. This lesson is called Quarto vs RMarkdown, part of the R in 3 Months (Fall 2022) course.
Transcript
Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.
Quarto is the next generation of RMarkdown. It's designed to bring the power of RMarkdown to folks who don't write R code, ie Python and Julia users.
Quarto isn't quite ready for prime time, which is why we're not yet teaching it in the course. The good news is that writing Quarto documents is almost exactly the same as writing RMarkdown documents, as demonstrated in the video below. I've also included the code for each document below the video.
RMarkdown
---
title: "RMarkdown"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE, warning = FALSE, message = FALSE)
```
```{r load-packages}
library(tidyverse)
library(skimr)
```
We **format** text inside of documents exactly the same between RMarkdown and Quarto.
The code chunk below has a custom code chunk option:
```{r, echo=TRUE}
msleep %>%
skim()
```
# Using default chunk options
This one uses the defaults
```{r}
msleep %>%
count(vore)
```
Quarto
---
title: "Quarto"
format: html
echo: false
message: false
warning: false
---
```{r load-packages}
library(tidyverse)
library(skimr)
```
We **format** text inside of documents exactly the same between RMarkdown and Quarto.
The code chunk below has a custom code chunk option:
```{r}
#| echo: true
msleep %>%
skim()
```
# Using default chunk options
This one uses the defaults
```{r}
msleep %>%
count(vore)
```
Have any questions? Put them below and we will help you out!
Course Content
142 Lessons
You need to be signed-in to comment on this post. Login.