• 机器学习
  • 求助:利用RCurl中url.exists()函数判断任何网址都返回false

执行RCurl中的判断URL是否存在的函数url.exists()
无论怎样替换变量都返回false, 但是电脑可以正常上网,用作变量的网页也可以用浏览器正常打开= =
求助下各位前辈!
谢谢啦!
6 天 后
> library('RCurl')
> url.exists('http://www.google.com')
[1] TRUE
> url.exists('http://www.yahoo.com')
[1] TRUE
> url.exists('http://www.bing.com')
[1] TRUE
> url.exists('http://www.baidu.com')
[1] TRUE
> url.exists('http://www.qq.com')
[1] TRUE
> Sys.info()
                                      sysname                                       release 
                                      "Linux"                           "3.13.0-55-generic" 
                                      version                                      nodename 
"#94-Ubuntu SMP Thu Jun 18 00:27:10 UTC 2015"                             "ip-172-31-8-224" 
                                      machine                                         login 
                                     "x86_64"                                     "unknown" 
                                         user                                effective_user 
                                    "rstudio"                                     "rstudio"