Displaying 1 result from an estimated 1 matches for "pathpathpath".
2008 Jul 28
1
How to set directory Rscript runs in/Sweave output directory
Hello
I am using Sweave to generate some pdf reports using R on a Windows
platform and would like to control the output directory that the
generated .tex file goes to. Basically I use the following commands in
a batch file:
set outdir=c:/output/1234
Rscript -e Sweave('C:/pathpathpath/script.Rnw')
Which produces script.tex
Sweave has the option of specifying an output directory for figures, but
the .tex file is always created in the directory that the Rscript
command was initiated in via the batch file. So my questions are thus:
1. Can Rscript be invoked in a nominated...