My very simple approach is to check if the output file exists (within the Sweave file), and run the time-consuming bits only if it does not.
As Uwe says, there are more sophisticated approaches too. Sarah On Fri, Dec 31, 2010 at 3:35 PM, Lars Bishop <lars...@gmail.com> wrote: > Hi, > > Maybe I'm missing the point here...but let's suppose you are working with > "large" data sets and using functions that take a significant amount of time > to run in R. I woulnd't like to run these functions every time I call > Sweave("myfile.Rnw") within R. What is the "common" practice to use Sweave > in these situations. I would just run the function once, save the results > and only load them each time I run Sweave on the .Rnw file. Makes sense? > > Sorry, the question seems silly, but I'd appreciate your thoughts. > > Thanks, > Lars. > -- Sarah Goslee http://www.functionaldiversity.org ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.