Re: [R] R2HTML: output from for-loops

2008-09-24 Thread Jim Lemon
Werner Wernersen wrote: Hi, I am trying to prepare a report with R2HTML using HTMLStart(outdir="./html", filename="report", echo=T, HTMLframe=F) then, for instance, I want to get the output of a loop: for (i in 1:20) print(summary(rnorm(1000))) but only the first of summaries really ends up

Re: [R] R2HTML: output from for-loops

2008-09-23 Thread Greg Snow
The problem is probably due to what is considered a top level expression to be evaluated and how R2HTML processes these. A simpler alternative is to use txtStart() or etxtStart() from the TeachingDemos package. These work similar to HTMLStart(), but don't do the html markup (the etxt version d