<style>
.reveal {
font-size: 36px;
}
</style>
# \(R\)Markdown
## Markdown
"Markdown is a lightweight markup language for creating formatted text using a plain-text editor."
---
## Why RMarkdown?
RMarkdown implements Markdown, allowing for integration with R (and other languages)
This allows:
- automated reports
- clear code and results documentation
- presentations with R outputs
- etc.
---
## knitr
R <-> Markdown integration started with `Sweave`
It is now driven by `knitr`:
`knitr` ≈ `Sweave` + `cacheSweave` + `pgfSweave` + `weaver` + `animation::saveLatex` + `R2HTML::RweaveHTML` + `highlight::HighlightWeaveLatex` + 0.2 * `brew` + 0.1 * `SweaveListingUtils` + more
(_source: https://yihui.org/knitr/_)
---
## knitr workflow

(source: https://rmarkdown.rstudio.com/lesson-2.html)
RMarkdown file -- .Rmd
Markdown file -- .md
Final output -- .html/tex/pdf/others
---
# Let's check in RStudio.
---
## Some reading
[Happy Git with R](https://happygitwithr.com/)
[RMarkdown in brief from RStudio](https://rmarkdown.rstudio.com/lesson-1.html)
[RMarkdown: The Definitive Guide](https://bookdown.org/yihui/rmarkdown/)
{"metaMigratedAt":"2023-06-15T21:35:20.865Z","metaMigratedFrom":"YAML","title":"(R)Markdown","breaks":true,"description":"View the slide with \"Slide Mode\".","contributors":"[{\"id\":\"1c10bb23-6c4c-4c1b-8586-5f8d56305139\",\"add\":4183,\"del\":2911}]"}