Using Markdown to Compile Notebooks

In this section, we will learn how to write and compile documents in the markup language named RMarkdown. The tutorials you went through earlier today were all written in Markdown and compiled in Rstudio.

1. Open a New RMarkdown Document in Rstudio








2. Basic Components of a Rmd Document

In this example, the document is prefilled with some example code.


2.1 Document Preamble

---
title: "My First RMarkdown"
author: "YOUR NAME"
date: "2/8/2022"
output: html_document
---


2.2 KNITR Compilation Chunk


2.3 Section Headers and Text


2.4 Code Snippets

```{r cars}
summary(cars)
```
```{r pressure, echo=FALSE}
plot(pressure)
```



3. Knitting the Example Document







4. Home Work