More efficient R / Sweave / TeXShop work-flow?

后端 未结 11 1033
傲寒
傲寒 2021-01-30 05:28

I\'ve now got everything to work properly on my Mac OS X 10.6 machine so that I can create decent looking LaTeX documents with Sweave that include snippets of R code, output, an

11条回答
  •  青春惊慌失措
    2021-01-30 06:07

    Just a note: you can actually call things like pdflatex etc. directly from R using texi2dvi (in the tools package). For example:

    Sweave(file="/Users/mymachine/Documents/Assign4.Rnw")
    
    texi2pdf("Assign4.tex")
    

    would compile your Rnw file into a pdf. Thus, no need to leave R to handle the tex->pdf step.

提交回复
热议问题