“Failed to connect to ”url“ port 80: Timed Out” in R, how can I solve?

邮差的信 提交于 2019-12-22 10:58:34

问题


I'm trying to test this code:

library(XML)
library(RCurl)

url <- "http://en.wikipedia.org/wiki/List_of_countries_by_population"
urldata <- getURL(url)

When I press enter, the R returns:

Failed to connect to en.wikipedia.org port 80: Timed out

How can I solve this?

来源:https://stackoverflow.com/questions/42399895/failed-to-connect-to-url-port-80-timed-out-in-r-how-can-i-solve

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!