Sweave 中的 R 代码

发布于 2024-08-25 15:30:18 字数 91 浏览 3 评论 0 原文

我正在审查一篇科学论文,审稿人要求将我的 R 代码作为 Sweave 文档提供。我以前从未听说过 Sweave,你知道更好的方法是什么吗?

多谢 :-)

I have a scientific paper under review, and a referee asked for my R code to be provided as a Sweave document. I've never heard of Sweave before, do you know what's the better way to do it?

Thanks a lot :-)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

噩梦成真你也成魔 2024-09-01 15:30:18

在我看来,这是一个非常不寻常的要求。我可以理解裁判希望您提供可重现的代码,但要求特定的格式有点过分了。我会通过提供您的代码来回复。 Sweave 不是学术期刊的标准做法。

This seems a very unusual request in my opinion. I can understand a referee expecting you to provide reproducible code, but requiring a specific format is over-the-top. I would respond by providing your code. Sweave is not standard practice for academic journals.

绅刃 2024-09-01 15:30:18

快速谷歌可以引导您找到很多好的资源:

查看我对此问题的回答:将 R 图导入 LaTeX?

我个人建议使用 LyX 或 Eclipse(带有 StatET 和 TeXlipse)来实现此目的,尽管有很多选择用于编辑 LaTeX。

编辑:

如果您的脚本需要很长时间才能运行,那么您还可以查看cacheSweave 包

A quick google can lead you to a lot of good resources:

See my answer to this question: Getting R plots into LaTeX?

I personally recommend using either LyX or Eclipse (with StatET and TeXlipse) for this, although there are many options for editing LaTeX out there.

Edit:

If your script takes a long time to run, then you can also look at the cacheSweave package.

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