【发布时间】:2020-01-15 02:29:38
【问题描述】:
我正在尝试加载一些 Internet 上可用的 .csv 文件(https url),但一直失败。
我的简单代码应该可以工作:
temp <- tempfile()
url <- "https://iotc.org/sites/default/files/documents/2019/06/IOTC-2018-DATASETS-CESurface.zip"
download.file(url, temp)
我明白了:
downloaded 0 bytes
Error in download.file(url, temp) : cannot download all files
In addition: Warning message:
In download.file(url, temp) :
URL 'https://iotc.org/sites/default/files/documents/2019/06/IOTC-2018-DATASETS-CESurface.zip': status was '503 Service Unavailable'
这真的很奇怪,因为 url 有效(即文件下载没有任何问题)。你知道为什么它不起作用吗?
谢谢!
【问题讨论】:
标签: r