Skip to content

Instantly share code, notes, and snippets.

@charliejhadley
Created September 30, 2022 09:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save charliejhadley/d18a9fc72b8983a8f80a78762b2dbe55 to your computer and use it in GitHub Desktop.
Save charliejhadley/d18a9fc72b8983a8f80a78762b2dbe55 to your computer and use it in GitHub Desktop.
rmd-vs-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)
```
---
title: "RMarkdown"
output: html_document
date: "2022-09-30"
---
```{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)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment