[Rd] Sweave wish items

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Thu, 18 Oct 2007 11:04:36 -0400

A scanario I have is spawning a Sweave job from another program (not necessarily written in R). That program needs to pass some information to the Sweave program including what the file name is of the report to produce.

Currently it calls a shell script which calls R CMD Sweave but it would be nice if R CMD Sweave were powerful enough to do that itself. These are the features that would be desirable:

Thus one could spawn this from their program:

R CMD Sweave --pdf myfile.Rnw -o myfile-123.pdf --args 23

and it would generate a pdf file from myfile.Rnw of the indicated ame passing 23 as arg1 to the R code embedded in the Sweave file.

Also it would be possible to place Windows batch commands and the Sweave file in the same file and the batch commands would look like this:

... various Windows batch commands ...
R CMD Sweave -x "^.EOF" --pdf -o %1 %0 --args %2 .... maybe more commands ....
... Sweave code goes here ...

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu 18 Oct 2007 - 15:13:53 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 25 Oct 2007 - 11:37:11 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.