Displaying 2 results from an estimated 2 matches for "htmlparseentityref".
2009 Nov 26
1
How to suppress errors generated by readHTMLTable?
...ene.php?llid=109079&unigene=&submit=Submit','index.html')
tables=readHTMLTable("index.html",error=function(...){})
tables
readHTMLTable gives me the following errors. Could somebody let me
know how to suppress them?
Opening and ending tag mismatch: center and table
htmlParseEntityRef: expecting ';'
htmlParseEntityRef: expecting ';'
htmlParseEntityRef: expecting ';'
htmlParseEntityRef: expecting ';'
htmlParseEntityRef: expecting ';'
htmlParseEntityRef: expecting ';'
htmlParseEntityRef: expecting ';'
htmlParseEntityRef: expe...
2008 Nov 04
2
How to suppress errors from htmlTreeParse() function in XML package?
...way to achieve this?
### Example:
library(RCurl); library(XML)
doc <- getURL('http://www.google.co.uk/search?q=%22R%20Project
%22&as_qdr=d1&num=100')
html.tree <- htmlTreeParse(doc, useInternalNodes = TRUE)
### Output - this is what i would like to suppress
Tag nobr invalid
htmlParseEntityRef: expecting ';'
htmlParseEntityRef: expecting ';'
### etc.
I attempted to use try(expr, silent=TRUE) but that didn't work for me:
> try(htmlTreeParse(doc, useInternalNodes = TRUE), silent=TRUE)
Many thanks in advance for any help,
Tony Breyal
### O/S = Windows Vista Ulti...