Re: [R] htmlParse (from XML library) working sporadically in the same code

2013-03-20 Thread Duncan Temple Lang
When readHTMLTable() or more generally the HTML/XML parser fails to retrieve a URL, I suggest you use check to see if a different approach will work. You can use the download.file() function or readLines(url()) or getURLContent() from the RCurl package to get the content of the URL. The you can p

[R] htmlParse (from XML library) working sporadically in the same code

2013-03-20 Thread Andre Zege
I am using htmlParse from XML library on a paricular website. Sometimes code fails, sometimes it works, most of the time id doesn't and i cannot see why. The file i am trying to parse isĀ  http://www.londonstockexchange.com/exchange/prices-and-markets/international-markets/indices/home/sp-500.htm