---
title: "Title"
author: "Author"
date: '`r Sys.Date()`'
output:
html_document:
number_sections: yes
toc: yes
pdf_document:
number_sections: yes
toc: yes
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
# Section
This is a section.
## Subsection
This is a subsection.
This is how you can embed an R code chunk:
```{r ggplot2}
library(ggplot2)
data(mtcars)
ggplot(mtcars, aes(mpg, wt)) + geom_point() + geom_smooth()
```
```{r packages, message=FALSE}
library(swirl)
library(foreign)
library(lintr)
library(rmarkdown)
library(ggplot2)
library(dplyr)
library(tidyr)
```
This is how you can run in-line R code. The product of `3` and `4` is `r 3*4`.
End a line with two spaces to start a new paragraph.
This is how you write *italics* (or _italics_), **bold**, `verbatim code`, subscript~2~, superscript^2^, endash: --, and emdash: ---.
An equation looks like this: $A = \pi \times r^{2}$
An equation block looks like this: $$E = mc^{2}$$
An array of aligned equations looks like this:
\begin{eqnarray}
1 + 1 & = & 2\\
1001 + 1 & < & 200000
\end{eqnarray}
This is how you make a comment that will not show in the output document:
This is how you create a link: or [link](www.rstudio.com)
This is an unordered list:
* item 1
+ sub-item 1 (indent 4 spaces)
+ sub-item 2
- sub-sub-item 1 (indent 8 spaces)
* item 2 (add 2 spaces)
Continued (indent 4 spaces)
This is an ordered list:
1. item 1
2. item 2
i) sub-item 1 (indent 4 spaces) (add 2 spaces)
A. sub-sub-item 1 (indent 8 spaces)
**RMarkdown is very case sensitive. Every indented / added space and every empty line matters.**