08/04/2014 @ JSM, Boston

# install R, and install.packages('knitr') # and optionally install RStudio (http://www.rstudio.com)

**Please do that again!** (sorry we made a mistake in the data, want to change a parameter, and yada yada)

- code + narratives = report
i.e. computing languages + authoring languages

We built a linear regression model. ```{r} fit <- lm(dist ~ speed, data = cars) b <- coef(fit) plot(fit) ``` The slope of the regression is `r b[1]`.

an example

- Sweave (Leisch, 2002)
- R + LaTeX

- https://yihui.org/knitr
- http://rmarkdown.rstudio.com
- features
- text output
- graphics output
- cache
- other computing languages
- and a lot more…