R Markdown消息= FALSE仍会发出警告

时间:2018-08-01 17:07:15

标签: r r-markdown knitr

我的R Markdown块标题如下:

```{r fluid_flowrate, echo=FALSE, message=FALSE, fig.height = 4, fig.width = 10}
# followed by my ggplot2 code
```

但是我编织成HTML并得到了正确的图,并伴随着这个警告,打印了两次:

## Warning: Removed 1 rows containing missing values (geom_point).
## Warning: Removed 1 rows containing missing values (geom_point).

我认为message=FALSE迫使警告消失了。它们为什么出现?

1 个答案:

答案 0 :(得分:3)

如果将以下内容添加到块选项中

warning=FALSE

它将prevents warnings that are generated by code from appearing in the finished