Hi Joel, You can use:
obj=diag(3) txt=capture.output(HTML(obj,file="")) Then you may manipulate elements, paste with collapse argument, replace parts with gsub and so on. HTH, Eric 2010/12/1 Joel <joda2...@student.uu.se> > > Hi > > Is it possible to instead of getting the HTML code written to a file, get > it > saved as a string in an object instead? > Or is there any kind of package that can do this? > //Joel > -- > View this message in context: > http://r.789695.n4.nabble.com/Save-R2HTML-as-an-object-instead-of-file-tp3066776p3066776.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html<http://www.r-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. > -- Eric Lecoutre Consultant - Business & Decision Business Intelligence & Customer Intelligence [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.