Displaying 1 result from an estimated 1 matches for "whiledo".
Did you mean:
while
2008 Jun 13
4
Sweave: looping over mixed R/LaTeX code
...ears inelegant to me.
Is there a better way to do this?
I have tried to do my homework, see below. Do I get partial credit ;-) ?
Thank you all for your time!
Stephan
#########################################
I can't simply start a for loop within an R chunk and finish it in another one.
whiledo in the ifthen.sty package doesn't like Sweave at all. And of course, it would simply reuse the R chunks if it did work, without changing things between loops. For the same reason, I cannot define a \newcommand{\loopcontent}{...} with the entire loop contents and then simply write \loopcontent \...