如何删除##'在打印控制台输出时出现在rmarkDown中的符号?
是否有任何更好的方法可以在RmarkDown生成的PDF中显示控制台输出,而
我尝试在这里搜索并搜索解决方案,但是我还没有找到任何解决我的问题的东西。
Is there any nicer way to display console output without '##' symbol in pdf generated by Rmarkdown
I have tried searching around here and googling for a solution, but I haven't found anything that solves my problem.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在文档顶部的代码块中,您可以编写默认
值为
comment =“ ##”
。In a code chunk at the top of your document, you can write e.g.
The default is
comment = "##"
.使用
knitr :: opts_chunk $ set(comment = na)
或{r chunk1,comment = na}
在块选项中,如果您不想在全球范围Use
knitr::opts_chunk$set(comment = NA)
or{r chunk1, comment = NA}
in the chunk options if you don't want to set it globally