Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Ubuntu 中,假设/home/folder1我有test.Rnw. 要在我的控制台中生成一个pdfI will go(假设这个目录是我的getwd) :R
/home/folder1
test.Rnw
pdf
getwd
R
Sweave(test.Rnw) texi2pdf(test.tex)
在此之后,将出现不需要的test.aux, test.log, test.out,形式的垃圾test.toc。有什么我Sweave可以自动摆脱它的吗?
test.aux
test.log
test.out
test.toc
Sweave
您机器上的 LaTeX 系统会生成这些文件,而不是Sweave. clean=TRUE在您的texi2pdf通话中使用:
clean=TRUE
texi2pdf
texi2pdf(test.tex, clean=TRUE)