开发者

R code in 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 :-)


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.


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

  • http://www.stat.uni-muenchen.de/~leisch/Sweave/
  • http://www.stat.umn.edu/~charlie/Sweave/
  • http://jeromyanglim.blogspot.com/2010/02/getting-started-with-sweave-r-latex.html
  • http://en.wikipedia.org/wiki/Sweave

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜