Skip to content
Prev 68033 / 398506 Next

Package 'R2HTML'

try this litte example:
save the code below in a file test.Rnw and call then

Sweave("test.Rnw", driver = RweaveHTML())

--

<html>
<body>
<h1>testing r2html</h1>
<p>look at this: here you can write some text</p>
<font color="darkred"><b><Sexpr format(Sys.time(),"%Y")></b></font>.
<<echo=FALSE>>=
summary(data.frame(c(1,2,3), c(3,4,5)))
@
<p>insert some graphics</p>
<<echo=FALSE,fig=TRUE,border=1,width=900,height=500,HTMLwidth=900,HTMLheight=500>>=
print(plot(c(1:30), c(1:30)))
@
</body>
</html>

--

hope it helps

let me know
christoph
Singh, Avneet wrote: