204  YAMLの解説

temp.Rmd
---
title: "Example"
output: 
  html_document:
    toc: true
    toc_float: true
    code_folding: "show"
---

::: {.cell}

```{.r .cell-code}
library(tidyverse)
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr     1.1.2     ✔ readr     2.1.4
✔ forcats   1.0.0     ✔ stringr   1.5.0
✔ ggplot2   3.4.2     ✔ tibble    3.2.1
✔ lubridate 1.9.2     ✔ tidyr     1.3.0
✔ purrr     1.0.1     
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag()    masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors

:::

205 1

ggplot(diamonds %>% slice(1:1000))+
  geom_point(aes(x=carat,
                 y=price,
                 color=color))

206 2

206.1 3

texttexttexttexttexttext

206.2 4

texttexttexttexttext ```

temp.Rmdの内容が、temp.Htmlとなることを確認。