Communicating with Data in the Tidyverse
Timo Grossenbacher
Data Journalist
```{r}
x <- 2 + 2
x
```
4
2 plus 2 equals `r 2 + 2`.
2 plus 2 equals 4.
```{r include=FALSE}
x <- 2 + 2
x
```
```{r}
x
```
4
Option | Effect |
---|---|
include |
Whether to show the R code chunk and its output. |
echo |
Whether to show the R code chunk. |
message |
Whether to show output messages. |
warning |
Whether to show output warnings. |
eval |
Whether to actually evaluate the R code chunk. |
More options on the respective help page of the knitr
package.
Communicating with Data in the Tidyverse