【问题标题】:How to get help on Rmarkdown chunks options?如何获得有关 Rmarkdown 块选项的帮助?
【发布时间】:2013-09-12 09:10:08
【问题描述】:

我开始玩 Rmarkdown,我很喜欢它。但是我有一个新手问题,不管是否荒谬,我都找不到一个直截了当的答案:

我不知道在 knitr 文档或其他地方我可以了解哪些有用的东西可以写在块插入中,以告诉 R 绘制或不绘制什么。例如:

```{r warnings=FALSE, message=FALSE}

将阻止 R 消息和警告出现在 HTML 输出中。我在另一个问题中看到了这一点,我想知道如何自己使用? 或类似的东西来计算这样的事情。

谢谢。

【问题讨论】:

标签: r knitr r-markdown


【解决方案1】:

你看过@文档yihui provides on the knitr site吗?

我还强烈建议您查看他最近发布的书dynamic documents with R and Knitr,他涵盖了您可以合理使用的所有内容以及一些内容。

您还可以通过创建 R 块轻松探索 R Studio 中的选项

}```

adding a comma
```{r,
}```

and pressing tab after the comma and it will give you all the potential options - they are well named and you can easily focus your search more thoroughly. For example, if you noticed the `purl` option you could explore more and find it is for extracting R code from the chunk.

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多