我正在第一次使用R包BerkeleyEarth,并试图使用其便利功能访问BEST数据。我认为也许这只是他们服务器的一个问题(我已经分别向该软件包的维护者发送了一个问题),但我想知道这是否是我正在做的傻事。使用R包BerkeleyEarth
要重现我的错
library(BerkeleyEarth)
downloadBerkeley()
它提供了以下错误消息
trying URL 'http://download.berkeleyearth.org/downloads/TAVG/LATEST%20-%20Non-seasonal%20_%20Quality%20Controlled.zip'
Error in download.file(urls$Url[thisUrl], destfile = file.path(destDir, :
cannot open URL 'http://download.berkeleyearth.org/downloads/TAVG/LATEST%20-%20Non-seasonal%20_%20Quality%20Controlled.zip'
In addition: Warning message:
In download.file(urls$Url[thisUrl], destfile = file.path(destDir, :
InternetOpenUrl failed: 'A connection with the server could not be established'
有没有人有采用这种封装形式有更好的体验?
我能够用以下方式下载它:install.packages('BerkeleyEarth');图书馆(BerkeleyEarth);我从来没有使用过downloadBerkeley()这一行,但不知道它的作用。 – 2013-02-27 18:47:28
包下载正常 - CRAN没有问题。 downloadBerkeley()是访问BEST数据包的函数,它是我在上面发布的错误消息的来源。 – tomw 2013-02-27 18:53:25
我明白了。谢谢。当我尝试使用downloadBerkeley()时,我也遇到了错误。也许我们没有正确使用downloadBerkeley()。我能够直接从他们的网站下载所有的数据集。 – 2013-02-27 19:01:12