Created
September 30, 2022 09:51
-
-
Save charliejhadley/d18a9fc72b8983a8f80a78762b2dbe55 to your computer and use it in GitHub Desktop.
rmd-vs-quarto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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) | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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