4

在 Ubuntu 中,假设/home/folder1我有test.Rnw. 要在我的控制台中生成一个pdfI will go(假设这个目录是我的getwd) :R

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

在此之后,将出现不需要的test.aux, test.log, test.out,形式的垃圾test.toc。有什么我Sweave可以自动摆脱它的吗?

4

1 回答 1

4

您机器上的 LaTeX 系统会生成这些文件,而不是Sweave. clean=TRUE在您的texi2pdf通话中使用:

texi2pdf(test.tex, clean=TRUE)
于 2013-10-22T14:12:54.437 回答