Trying to scrape wikipedia page, the like of which i have done many times before
library(XML)
myURL <- "http://en.wikipedia.org/wiki/List_of_US_Open_MenUs_Singles_champions"
y <- readHTMLTable(myURL, stringsAsFactors = FALSE)
R crashes either in RStudio or the standard GUI
Other SO comments on similar problem suggested use of readLines
u=url(myURL)
readLines(u) # cannot open: HTTP status was '404 Not Found'
The url is actually redirected so entered the final URL
myURL <- "http://en.wikipedia.org/wiki/List_of_US_Open_Men%27s_Singles_champions"
This time readLines does output the page but use of XML functions, including htmlParse, still cause crash
TIA