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=""))

[R] Automate generation of multiple reports using odfWeave

2010-02-26 Thread Aleksey Naumov
Dear R and odfWeave users, I am looking for a way to automate generation of many reports using odfWeave. All reports would use the same input ODT file, the only difference would be in the name of the dataset which will be analyzed in any particular report. Right now, the name of the dataset is har