On Tue, 22 Feb 2005 20:21:46 -0600 Dirk Eddelbuettel wrote: > > On 22 February 2005 at 14:58, [EMAIL PROTECTED] wrote: > | side note 2: For make afficionados the follwing 2 rules in > | combination with the Sweave script from the FAQ do almost the same > | (that's what I use :-) > > Sure, but it requires a (arguably small) Makefile in every sweave > project directory. Would you consider integrating Gregor's script (or > a suitable modification) instead?
As discussed in various bits and pieces in this thread: the main building blocks are all there in R so that you could do something like Rnw2dvi <- function(x, ...) { Sweave(paste(x, ".Rnw", sep = "")) texi2dvi(paste(x, ".tex", sep = ""), ...) } But as texi2dvi() requires some attention under Windows, people might want to use something like Gabor suggested. Others will prefer a Makefile like Fritz, others a shell script like Gregor or... Personally, I've got a Rnw2pdf script with --- Sweave $1 texi2dvi --pdf --clean $(basename $1 .Rnw).tex rm -f $(basename $1 .Rnw)-*.pdf rm -f Rplots.ps --- in my bin/ directory. So I think it is probably easiest if every user sets up something he/she is comfortable with on his/her platform. Z > Dirk > > -- > Better to have an approximate answer to the right question than a > precise answer to the wrong question. -- John Tukey as quoted by > John Chambers > > ______________________________________________ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html