Re: [R] Help with capture.output

2010-12-06 Thread Joel
Why to you always find the answer as soon as you have posted the Q here :P paste(toReturn, collapse="") But if anyone have a better solution plz share. //Joel -- View this message in context: http://r.789695.n4.nabble.com/Help-with-capture-output-tp3074192p3074199.html Sent from the R help m

[R] Help with capture.output

2010-12-06 Thread Joel
Hi Im trying to capture the output of HTML but dont really get what I want As an example: > y<-data.frame(a=c(1,2,3),b=c(1,2,3),c=c(1,2,3)) > toReturn<-capture.output(HTML(y,file="")); This gives me the output of toReturn as an vector: > toReturn [1] ""