---
title: "Title"
author: "Author"
date: '`r Sys.Date()`'
output:
  html_document:
    number_sections: yes
    toc: yes
  pdf_document:
    number_sections: yes
    toc: yes
---

<!-- Note: the template includes both html_document and pdf_document above. -->
<!-- Put the one you want first.   -->
<!-- Or, select the one you want from the Knit menu. -->

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```

<!-- Here are some of the most important options you can use to control a code chunk in your .Rmd file -->
<!-- TRUE/FALSE options: -->
<!-- eval =  Should this chunk be run when compiling? (default = TRUE) -->
<!-- echo =  Should the R code (i.e. the commands you type up) be displayed in the final document after running the code? If put to FALSE, only the results of the commands (such as the created plot) will appear in the final document; not the commands themselves.  (default = TRUE) -->
<!-- warnings =  Should R's warnings be printed in the document? (default = TRUE)  -->
<!-- error =  Should error messages from the console be displayed in the document? (default = FALSE) -->
<!-- include =  Should the results of the commands (such as the created plots) be included in the final document after running the code? If put to FALSE, no results of executed commands will appear in the final document. (default = TRUE) -->
<!-- Plot options: -->
<!-- fig.align= Where should the plots be displayed in the document? Options: 'left', 'right', 'center' (default = 'default') -->
<!-- fig.cap = Define the plot caption (within quotation marks) (default = NULL) -->
<!-- fig.height = Specifies the height of the plot (in inches) -->
<!-- fig.width = Specifies the width of the plot (in inches) -->

<!-- Results display options:  -->
<!-- results = 'asis' - display results as is -->
<!-- results = 'hide' - do not display results -->
<!-- results = 'hold' - put all results below all code -->
<!-- (default = 'markup') --> 

# 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: 
<!-- You cannot see this in the output.-->  

This is how you create a link: <http://www.rstudio.com> 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.**
