Knitr:只显示结果,不显示任何其他内容
Knitr: Only show result without anything else
我好像想不通..
在带有 rhtml 文件的 R Studio 中,我想要这个:
<!--begin.rcode test <-1 end.rcode-->
在 html 输出中看起来像这样:
1
但目前看起来是这样的:
## [1] 1
基本上希望围绕此构建一个 html 页面。因此需要排除由 knitr 符号生成的所有额外 div 和代码。
在这个问题上绞尽脑汁。
echo
控制代码的显示
results
控制代码评估的输出
message
控制消息
warning
和 error
控制来自代码评估的警告和错误。
```{r echo = FALSE, results = TRUE, message = FALSE, warning = FALSE, error = FALSE}
# some code
```
我好像想不通..
在带有 rhtml 文件的 R Studio 中,我想要这个:
<!--begin.rcode test <-1 end.rcode-->
在 html 输出中看起来像这样:
1
但目前看起来是这样的:
## [1] 1
基本上希望围绕此构建一个 html 页面。因此需要排除由 knitr 符号生成的所有额外 div 和代码。
在这个问题上绞尽脑汁。
echo
控制代码的显示results
控制代码评估的输出message
控制消息warning
和error
控制来自代码评估的警告和错误。```{r echo = FALSE, results = TRUE, message = FALSE, warning = FALSE, error = FALSE} # some code ```