Re: [R] How to suppress errors from htmlTreeParse() function in XML package?

2008-11-05 Thread Tony Breyal
Thank you both Martin and Duncan, each suggestion work beautifully! re: capture.output() - I don't remember ever coming across this little function before, which is a shame because I can think of several places where it would have been rather useful. R has so many lovely little functions, just

[R] How to suppress errors from htmlTreeParse() function in XML package?

2008-11-04 Thread Tony Breyal
Dear R-help, The following code downloads an html document into variable 'doc' and then stores an internal representation into variable 'html.tree'. Even if the html code is malformed, this still works which is fantastic. However, as in the example below, i do get some ouput from R in the console

Re: [R] How to suppress errors from htmlTreeParse() function in XML package?

2008-11-04 Thread Martin Morgan
Hi Tony -- Tony Breyal [EMAIL PROTECTED] writes: Dear R-help, The following code downloads an html document into variable 'doc' and then stores an internal representation into variable 'html.tree'. Even if the html code is malformed, this still works which is fantastic. However, as in the

Re: [R] How to suppress errors from htmlTreeParse() function in XML package?

2008-11-04 Thread Duncan Temple Lang
Martin Morgan wrote: Hi Tony -- Tony Breyal [EMAIL PROTECTED] writes: Dear R-help, The following code downloads an html document into variable 'doc' and then stores an internal representation into variable 'html.tree'. Even if the html code is malformed, this still works which is