我正在查看DataCarpentries第here页,它从他们的GitHub仓库上的setup.R文件中抛出了一个错误.在第33行,我们看到这个:
dest <- tempfile()
download.file("https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/physical/ne_110m_graticules_all.zip",
dest, mode = "wb")
URL看起来很奇怪(对我来说),但正确(例如,我可以从浏览器保存文件).数据是二进制的,所以mode="wb"
看起来是正确的.但是调用download.file
会引发一个错误,并给出可怕的"500 Internal Server Error"警告.我试过使用不同的方法,例如,method="curl"
下载一个文本文件
"您的网站上有一个严重错误. 了解有关在WordPress中进行调试的更多信息."
这是一个使用url
转换到更细粒度的方法的问题吗?