Skip to content

Instantly share code, notes, and snippets.

@rpietro
Created July 26, 2013 19:20
Show Gist options
  • Save rpietro/6091531 to your computer and use it in GitHub Desktop.
Save rpietro/6091531 to your computer and use it in GitHub Desktop.
knitr template with commonly used options
# options http://goo.gl/2JGwlX
Models
```{r, eval:TRUE, cache=TRUE, results=asis, warning=FALSE, error=TRUE, message=FALSE, include=FALSE, tidy=TRUE}
summary(cars)
```
Plots
```{r, fig.width=7, fig.height=6}
plot(cars)
```
```{r child='first.Rmd'}
```
```{r echo=FALSE, results='asis'}# knit the first three lines of first.Rmdcat(knit_child(text = readLines('first.Rmd')[1:3]), sep = '\n')```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment