MWE test.Rmd文件:
---
title: ""
author: "Alex"
output: html_document
runtime: shiny
---
```{r echo = FALSE, warnings=FALSE}A <- max()
The value of $a$ in the first code chunk is `r a`.
```{r include=FALSE}A <- max()
The value of $a$ in the second code chunk is `r a`.生产:

第一个警告没有被抑制,第二个是由include=FALSE发出的。然而,warnings=FALSE一直致力于抑制其他警告,如包命名空间冲突。
我所收到的包裹是:
knitr_1.12.3
rmarkdown_0.9.6发布于 2016-07-01 01:01:54
您需要使用warning=FALSE,而不是warnings=FALSE。遗憾的是,这里没有“未识别的块选项”(meta-)警告,但是软件只能做这么多。(我很惊讶,warnings=FALSE过去一直为你工作--也许这只是一个一次性的错误?)
https://stackoverflow.com/questions/38135437
复制相似问题