[R] Sweave running R chunks for figure generation several times

Florian Burkart florian.burkart at gmx.de
Thu Mar 25 16:14:10 CET 2010


Hi,

following issue:

Sweave is running the R code to generate
figures three times under standard behaviour, 
twice if run with eps=FALSE, once if run 
with eps=FALSE,pdf=FALSE.

However, ideally, I'd want it to run once to 
generate pds with eps=FALSE being set.

How come this isn't so? Am I missing something?

Basically, my R figure code is expensive to 
run. I can of course move the very expensive 
bits outside of the figure environment, but 
there are still some costs involved...

Thanks!



More information about the R-help mailing list