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:
I recently learnt how to use Sweave which is a wonderful tool After which i also tried to use R2HTML as it would allow many of my colleagues who dont use latex to be able to use and edit my work. I was unable to make it work and couldnt find a way to implement it. I got some errors. I wonder if you could help me with it i have a windows 2000 OS and the version of R is "R version 1.9.1, 2004-06-21" This is the command i gave followed by the output, i couldnt find much info on "SweaveParseOptions"
Sweave("Sweave-test-1.Rnw",driver=RweaveHTML)
Writing to file Sweave-test-1.html Processing code chunks ... Error: couldn't find function "SweaveParseOptions" "I have no data yet. It is a capital mistake to theorize before one has data. Insensibly one begins to twist facts to suit theories instead of theories to suit facts." ~ Sir Arthur Conan Doyle (1859-1930), Sherlock Holmes
______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html