We can use R2HTML package to direct output of R to an html file.
Remember, R2HTML package is different from R2html command in the prettyR package.
The basic syntaxt of using it in an interactive R session is as follows.
HTMLStart(filename = “~/test.html”, echo=TRUE)
..R commands …
This works neatly with Emacs and ESS as well.
Technorati: R html