【发布时间】:2020-10-19 11:45:57
【问题描述】:
我正在尝试在 R 中下载 ZIP 文件并提取 CSV。 我在 StackOverFlow 上找到了几个解决方案,例如 Using R to Download and extract zip file that contains a folder,
但我收到错误消息。 我的代码:
url <- 'https://www.intervista.ch/media/2020/03/Download_Mobilit%C3%A4ts-Monitoring_Covid-19.zip'
temp <- tempfile()
download.file(url,temp)
错误输出(从德语翻译):
download.file(url, temp) 中的错误: 无法打开 URL 'https://www.intervista.ch/media/2020/03/Download_Mobilit%C3%A4ts-Monitoring_Covid-19.zip' 附加警告: 在 download.file(url, temp) 中: URL 'https://www.intervista.ch/media/2020/03/Download_Mobilit%C3%A4ts-Monitoring_Covid-19.zip':状态为'SSL peer certificate or SSH remote key was not OK'
【问题讨论】:
标签: r zip downloadfile