December 2017
Beginner to intermediate
470 pages
12h 29m
English
When working with chunks we have a lot of flexibility, and this flexibility can be seen by the many options we may adjust. Here, we will only mention the most common ones. To avoid including the code as output, use echo = FALSE. To avoid showing the results, use include = FALSE. To avoid evaluating the code block, use eval = FALSE. To avoid showing warnings, use warning = FALSE. To set the figure width and height, use fig.height = 10 and fig.width = 10 with the actual numbers you want (units are inches by default). All of these can be used in the code chunk header shown as follows:
```{r some-label, include = TRUE, eval = FALSE}
1 + 2
```