More efficient R / Sweave / TeXShop work-flow?

后端 未结 11 1037
傲寒
傲寒 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:17

    On the bash shell command line:

    R CMD Sweave foo.Rnw && pdflatex foo.tex
    

    Runs Sweave, and if that succeeds it goes on to do pdflatex. Out pops a pdf. If you've got this in a bash Terminal then just hit up-arrow to get it back and do it again. And again. And Again.

    Makefile solution also good.

提交回复
热议问题