[R] R2HTML

Regina Schinner regina at schinner.info
Wed Feb 10 09:44:19 CET 2010


I am having difficulties with R2HTML. If I try to generate a HTML file with the below code, the titles, horizontal line, and scatter plot are there, but the data summary [summary(iris)] is not. 

---

library(R2HTML)
HTMLStart(file="myreport", extension="html", echo=FALSE, HTMLframe=TRUE)

HTML.title("Data Description", HR=3)
summary(iris) 

HTMLhr()

HTML.title("Scatter Plot", HR=3)
plot(iris$Sepal.Length~iris$Sepal.Width)
HTMLplot() 

HTMLStop()

---

How do I add summary data to a HTML file?

Thanks for any help you can provide
Regina Schinner


More information about the R-help mailing list