R:无法下载文件

时间:2017-04-21 08:51:05

标签: r http httprequest

我想使用以下请求下载文件:

request <- 'http://earthserver.ecmwf.int/rasdaman/ows?service=WCS&version=2.0.1&request=ProcessCoverages&query=for c in (geff_fire_weather_index) return encode(c[Lat(35:47),Long(6:18),ansi("2015-01-01T00:00":"2015-12-31T00:00")],"netcdf")'

download.file(url = request, destfile = "rea.nc")

如果我使用浏览器运行它没有问题,但在R中失败并出现以下错误消息:

downloaded 0 bytes

Error in download.file(url = request2, destfile = "rea.nc") : 
cannot download all files
In addition: Warning message:
In download.file(url = request2, destfile = "rea.nc") :
URL 'http://earthserver.ecmwf.int/rasdaman/ows?service=WCS&version=2.0.1&request=ProcessCoverages&query=for c in (geff_fire_weather_index) return encode(c[Lat(35:47),Long(6:18),ansi("2015-01-01T00:00":"2015-12-31T00:00")],"netcdf")': status was 'Couldn't connect to server'

有没有办法解决这个问题?

0 个答案:

没有答案