More efficient R / Sweave / TeXShop work-flow?

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

    I use a Makefile of the following form for my Sweave documents:

    pdf: myfile.tex
        R CMD texi2pdf myfile.tex
    
    myfile.tex: myfile.Rnw
        R CMD Sweave myfile.Rnw
    

    Then I can build the document in one step in the Mac OS Terminal by running the command make pdf

    I'm sure there is a way to bring this closer to your one-click goal in Mac OS X, but this works well enough for me.

提交回复
热议问题