Example modeled after http://rmarkdown.rstudio.com/authoring_basics.html

The R source that made this document.

```
*italic* **bold**
_italic_ __bold__
```

*italic* **bold**

*italic* **bold**

Three or more asterisks or dashes:

```
******
------
```

```
# Header 1
## Header 2
### Header 3
```

Unordered List:

```
* Item 1
* Item 2
+ Item 2a
+ Item 2b
```

- Item 1
- Item 2
- Item 2a
- Item 2b

Ordered List:

```
1. Item 1
2. Item 2
3. Item 3
+ Item 3a
+ Item 3b
```

- Item 1
- Item 2
- Item 3
- Item 3a
- Item 3b

R code will be evaluated and printed

```
{r}
summary(cars$dist)
summary(cars$speed)
```

`summary(cars$dist)`

```
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 2.00 26.00 36.00 42.98 56.00 120.00
```

`summary(cars$speed)`

```
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 4.0 12.0 15.0 15.4 19.0 25.0
```

`There were ` r nrow(cars)` cars studied`

There were 50 cars studied

Use a plain http address or add a link to a phrase:

```
http://example.com
[linked phrase](http://example.com)
```

Images on the web or local files in the same directory:

```
![alt text](http://www.iana.org/_img/2013.1/iana-logo-header.svg)
```

```
A friend once said:
> It's always better to give
> than to receive.
```

A friend once said:

It’s always better to give than to receive.

```
We defined the `add` function to
compute the sum of two numbers.
```

We defined the `add`

function to compute the sum of two numbers.

Inline equation:

`This is the best equation ever $y=x^2/2$. But this one isn't too shabby either, $\sum_{i=1}^n X_i$. Don't forget to escape the `sqrt`, $\sqrt{b^2 - 4ac}$`

This is the best equation ever \(y=x^2/2\). But this one isn’t too shabby either, \(\sum_{i=1}^n X_i\). Don’t forget to escape the `sqrt`

, \(\sqrt{b^2 - 4ac}\)

Display equation:

This is a decent equation, too.

`$\sum_{i=1}^n X_i$`

\(\sum_{i=1}^n X_i\)

```
|Header |Column 1 | Column 2 | Column 3 |
|:--- |:---- |:----:| ----:|
|1. Row| is | is | is |
|2. Row| left | nicely | right |
|3. Row| aligned | centered | aligned |
```

Header | Column 1 | Column 2 | Column 3 |
---|---|---|---|

1. Row | is | is | is |

2. Row | left | nicely | right |

3. Row | aligned | centered | aligned |

Reference Style Links and Images

End a line with two or more spaces:

```
Roses are red,
Violets are blue.
```

Roses are red,

Violets are blue.

```
superscript^2^
~~strikethrough~~
```

superscript^{2}

~~strikethrough~~