我一直通过R-Studio使用Knitr,并认为它非常简洁。不过我有个小问题。当我源文件在一个R-Chunk,针织输出包括外部注释如下:
+ FALSE Loading required package: ggplot2
+ FALSE Loading required package: gridExtra
+ FALSE Loading required package: grid
+ FALSE Loading required package: VGAM
+ FALSE Loading required package: splines
+ FALSE Loading required package: stats4
+ FALSE Attaching package: 'VGAM'
+ FALSE The following object(s) are masked from 'package:stats4':
我尝试过以各种方式设置R-chunk选项,但似乎仍然无法避免这个问题:
```{r echo=FALSE, cache=FALSE, results=FALSE, warning=FALSE, comment=FALSE, warning=FALSE}
source("C:/Rscripts/source.R");
```
有没有办法注释掉这些消息?