如何删除##'在打印控制台输出时出现在rmarkDown中的符号?

发布于 2025-02-01 12:26:12 字数 89 浏览 2 评论 0原文

是否有任何更好的方法可以在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

盗心人 2025-02-08 12:26:12

在文档顶部的代码块中,您可以编写默认


knitr::opts_chunk$set(comment = "")

值为comment =“ ##”

In a code chunk at the top of your document, you can write e.g.


knitr::opts_chunk$set(comment = "")

The default is comment = "##".

萌辣 2025-02-08 12:26:12

使用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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文