我的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
迫使警告消失了。它们为什么出现?
答案 0 :(得分:3)
如果将以下内容添加到块选项中
warning=FALSE
它将prevents warnings that are generated by code from appearing in the finished