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
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.
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
3 matches
Mail list logo