Displaying 1 result from an estimated 1 matches for "call2sweave".
2008 Oct 16
1
Rscript -e, Sweave and tempdir()
...(ie. "sourcing" a file without the -e option)
where testdir.r contains:
outpath <- tempdir()
write.table(outpath,"D:\\Internet\\RWebService\\Data\\dir.txt")
there appears to be no problem with the call to the tempdir() command. Also if we put the call to Sweave within a call2sweave.r file and do
cmd>Rscript call2sweave.r (ie. run sweave via a file that is sourced, rather than using the -e option)
then things go OK.
In short, something seems to be happening with the -e version of Rscript, the tempdir() command and its invocation by Sweave.
Any ideas?
Thanks
Paul.
EAR...