Displaying 1 result from an estimated 1 matches for "loopcont".
Did you mean:
loopcount
2008 Jun 13
4
Sweave: looping over mixed R/LaTeX code
...9;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 \loopcontent ... or \input or \include the loop content from an external file.
Of course it would be possible to not use Sweave and just use the output from the R console, but there are a couple of figures I would really lik...