11.8 Hide everything from a chunk
Sometimes we may want to execute a code chunk without showing any output at all. Instead of using separate options mentioned in Section 11.7, we can suppress the entire output of the code chunk using a single option include = FALSE
, e.g.,
```{r, include=FALSE}
# any R code here
```
With include=FALSE
, the code chunk will be evaluated (unless eval=FALSE
), but the output will be completely suppressed—you will not see any code, text output, messages, or plots.
当前内容版权归 Chapman & Hall/CRC 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Chapman & Hall/CRC .