Re: [R] Rename output file in Swaeve and Tex

2012-06-15 Thread Yihui Xie
I do not think it is possible with the 'R CMD Sweave' interface, but you can always use the 'R -e' approach, e.g. R -e 'Sweave("foo.Rnw"); file.rename("foo.tex", "foo-bar.tex"); tools::texi2dvi('foo-bar.tex')' (not tested, but idea is there) To make this more natural, you can try the knitr package

[R] Rename output file in Swaeve and Tex

2012-06-15 Thread Manish Gupta
HI, I am working on R and Latex. R CMD Sweave Test.Rnw (this generates Rnw.Tex file ) R CMD pdflatex Test.tex (It generated Test.pdf) Is there any way to change the name of of output file (Test.pdf). I want it to pass the output file name as parameter. R CMD Sweave Test.Rnw Output_File