Re: [R] Sweave: looping over mixed R/LaTeX code

2008-06-14 Thread Dieter Menne
Stephan Kolassa Stephan.Kolassa at gmx.de writes: I would like to loop over a medium amount of Sweave code, including both R and LaTeX chunks. Is there any way to Stephan noted that \newcommand was not expanded, so after re-reading I realized that my comment was a bit short. After all, when

[R] Sweave: looping over mixed R/LaTeX code

2008-06-13 Thread Stephan Kolassa
Dear guRus, I would like to loop over a medium amount of Sweave code, including both R and LaTeX chunks. Is there any way to do so? As an illustration, can I create a .tex file like this using a loop within a .Rnw file, where the 1,2,3 comes from some iteration variable in R?

Re: [R] Sweave: looping over mixed R/LaTeX code

2008-06-13 Thread Delphine Fontaine
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] project.org] On Behalf Of Stephan Kolassa Sent: vendredi 13 juin 2008 10:22 To: r-help@r-project.org Subject: [R] Sweave: looping over mixed R/LaTeX code Dear guRus, I would like to loop over a medium amount

Re: [R] Sweave: looping over mixed R/LaTeX code

2008-06-13 Thread Dieter Menne
Stephan Kolassa Stephan.Kolassa at gmx.de writes: I would like to loop over a medium amount of Sweave code, including both R and LaTeX chunks. Is there any way to do so? As an illustration, can I create a .tex file like this using a loop within a .Rnw file, where the 1,2,3 comes from some

Re: [R] Sweave: looping over mixed R/LaTeX code

2008-06-13 Thread Jeffrey Horner
Stephan Kolassa wrote on 06/13/2008 03:22 AM: Dear guRus, I would like to loop over a medium amount of Sweave code, including both R and LaTeX chunks. Is there any way to do so? As an illustration, can I create a .tex file like this using a loop within a .Rnw file, where the 1,2,3 comes from