Re: [R] Sweave: Avoiding recompilation of figures

2012-04-26 Thread Yihui Xie
I guess there is not a steep learning curve if you want to use cache in knitr or cacheSweave -- just use the chunk option cache=TRUE and you are all set. <>= # time-consuming computation here @ Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa

Re: [R] Sweave: Avoiding recompilation of figures

2012-04-26 Thread Rainer Schuermann
The easiest way probably is to put the code that takes so long to execute, in a separate file, such as "graph1.Rnw", and get it into your master file via SweaveInput( "graph1.Rnw" ). Once you are happy with your graph1, you can comment this line out and only compile the stuff that keeps changing.

[R] Sweave: Avoiding recompilation of figures

2012-04-26 Thread julia . jacobson
Hello everybody out there using Sweave, There are some complicated SQL queries and laborous calculations against large data included as R code chunks using Sweave in my LaTeX document. These code chunks create graphs that do not change most of the time, but they are of course recompiled every ti