How to remove aux / log / out after Sweave has finished compiling

In Ubuntu, suppose /home/folder1I have one test.Rnw. To generate pdf, I will go (if this directory is mine getwd) in my console R:

Sweave(test.Rnw)
texi2pdf(test.tex)

Then there is an unnecessary waste forms test.aux, test.log, test.out, test.toc. Is there something I Sweavecan automatically get rid of this?

+4
source share
1 answer

The LaTeX system on your computer creates these files, not Sweave. Use clean=TRUEin a call texi2pdf:

texi2pdf(test.tex, clean=TRUE)
+4
source

All Articles