# yihui/knitr

982b80a Jan 6, 2016
75 lines (48 sloc) 1.32 KB

# A Minimal Example for Markdown

This is a minimal example of using knitr to produce an HTML page from Markdown.

## R code chunks

# set global chunk options: images will be 7x5 inches

## Misc

You can indent code chunks so they can nest within other environments such as lists.

1. the area of a circle with radius x

pi * x^2
## [1] 12.57

2. OK, that is great

To compile me, use

library(knitr)
knit("knitr-minimal.Rmd")

## Conclusion

Markdown is super easy to write. Go to knitr homepage for details.