Skip to content
Prev 256965 / 398506 Next

Sweave Executes Package Functions Twice

On 15/04/2011 7:00 AM, Dario Strbenac wrote:
This is standard behaviour for a chunk that is drawing figures.  The 
solution is to *only* draw the figure in such a chunk, do all your 
computation in other chunks.

In version 2.14.0 in the fall, this will no longer be the default 
behaviour.  Perhaps it will be possible to suppress the multiple runs 
before then, but I think it is unlikely that the default will change.

Duncan Murdoch