Re: [R] Automate generation of multiple reports using odfWeave

2010-02-27 Thread Max Kuhn
> On a more complicated note, is there a way to embed the station name in a > header or footer of the document? It seems there is no way to evaluate a > chunk or an inline \Sexpr{...} in a header or footer? > This would put station ID on every report page, making reading & comparing > multiple repo

Re: [R] Automate generation of multiple reports using odfWeave

2010-02-26 Thread Aleksey Naumov
Sarah, Thank you very much, this an easy solution that works very well! On a more complicated note, is there a way to embed the station name in a header or footer of the document? It seems there is no way to evaluate a chunk or an inline \Sexpr{...} in a header or footer? This would put station I

Re: [R] Automate generation of multiple reports using odfWeave

2010-02-26 Thread Sarah Goslee
I tend to do it the other way around. Hard-code the station into the ODT file as "thisstation". Then, in R, do something like this: allstations <- c("station1", "station2", "station3") for (i in allstations) { thisstation <- i odfWeave("inputfile.odt", paste("output-", i, ".odt", sep=""))