[R] Converting .Rout file to pdf via Sweave automatically

Parag Magunia parag.magunia at gmail.com
Sat Jan 14 04:21:15 CET 2012


The R documentation mentions to create a PDF or DVI file from an Rnw template, the Sweave command can be used used.

However, is there any way to go from a .Rout file straight to pdf with an Rnw template ?

What I'm trying to avoid is adding the Sweave markup to the .tex file manually.

What I think I'm missing is the exact arguments to the Sweave command.

I tried numerous forms of:

Sweave("batch.Rout", RweaveLatex(), "myR.Rnw");

but without any succuess.



More information about the R-help mailing list