我正在使用以下代码:
url = "http://finance.yahoo.com/q/op?s=DIA&m=2013-07"
library(XML)
tabs = readHTMLTable(url, stringsAsFactors = F)
I get the following error:
Error: failed to load external entity "http://finance.yahoo.com/q/op?s=DIA&m=2013-07"
当我在浏览器中使用该URL时,它可以正常工作。那么,我在这里做错了什么呢?
谢谢。
library(RCurl); tabs = getURL(url)
而不触发错误? - SchaunW