Skip to content
Prev 172239 / 398506 Next

Converting R to Sweave (Rnw)

On 3/2/2009 9:06 AM, Rainer M Krug wrote:
I don't think so, but writing a new driver is only a medium difficulty 
job.  Start with an existing one in

https://svn.r-project.org/R/trunk/src/library/utils/R/Sweave.R

and modify until you have what you want. The harder part of this is the 
design:  exactly what input and output is not going to be awkward?

A different approach to the same problem is to use specially formatted 
comments in the R source to generate documentation; I think the R.oo 
package includes such a thing, and there may be others.  I haven't used 
these with R, but have in other languages, and they were nice there.

Duncan Murdoch