[R] R2HTML: output from for-loops
Jim Lemon
jim at bitwrit.com.au
Wed Sep 24 11:49:11 CEST 2008
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 in the html file.
> What am I doing wrongly?
>
Hi Werner,
I don't think you are doing anything wrong. I tried running a loop with
the htmlize function in the prettyR package and it seems to work okay.
Jim
More information about the R-help
mailing list