Re: [R] Mixing LaTeX and R Code in Loops and Functions in Sweave

2009-10-17 Thread Henrik Bengtsson
...or the R.rsp package. -H On Sat, Oct 17, 2009 at 10:37 AM, Gabor Grothendieck wrote: > Try this: > > <>= > for(i in 1:10) { >  cat("...latex code...") > } > @ > > or check out the brew package. > > On Fri, Oct 16, 2009 at 3:25 PM, Jacob R. Marcus > wrote: >> I have a question about mixing LaT

Re: [R] Mixing LaTeX and R Code in Loops and Functions in Sweave

2009-10-17 Thread Gabor Grothendieck
Try this: <>= for(i in 1:10) { cat("...latex code...") } @ or check out the brew package. On Fri, Oct 16, 2009 at 3:25 PM, Jacob R. Marcus wrote: > I have a question about mixing LaTeX and R code in loops and functions in > Sweave. Here's my problem: > > I want to do something like this: > >

[R] Mixing LaTeX and R Code in Loops and Functions in Sweave

2009-10-17 Thread Jacob R. Marcus
I have a question about mixing LaTeX and R code in loops and functions in Sweave. Here's my problem: I want to do something like this: <<>>= # some R code for a loop for(i in 1:10) { @ My LaTex code here would describe what I do in the loop. For instance, in this loop print out the numbers o