Re: [Rd] vignette compilation times

From: Berwin A Turlach <>
Date: Sat, 21 Feb 2009 02:23:52 +0800

G'day Robin,

On Thu, 19 Feb 2009 11:10:45 +0000
Robin Hankin <> wrote:

> I am preparing a number of vignettes that require a very long time to
> process with Sweave. The longest one takes 10 hours.

Is the sum of all chunks taking this time? Or is it mostly the code in only a view chunks? And if so, are there chunks following that depend on the result of these time-intensive chunks?

I wonder if it is feasible to construct your vignette according to the lines.
1) have a file, say, that contains:

you may want to try the commands
> command1
> command2

but be aware that his might take a long time. #else
Now we run the commands

2) Now construct a Makefile that, using a preprocesser like cpp, produces vignette1.Rnw from using the first version before an "R CMD build" but otherwise (for your own testing) the second version. Using .Rbuildignore, you can ensure that would not be distributed.

> I love the weaver package!

Thanks for pointing this package out. I was aware of cacheSweave, but that package seems to require that each chunk has a label which I find kind of inconvenient. weaver does not seem to have such a requirement.


        Berwin mailing list Received on Fri 20 Feb 2009 - 17:28:05 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 20 Feb 2009 - 17:30:32 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive