如何导入谁的空气质量.xlsx数据库?
我一直在尝试使用download.file
为了导入,但它一直遇到错误:
utils::download.file(url = "https://cdn.who.int/media/docs/default-source/air-pollution-documents/air-quality-and-health/who_aap_2021_v5.xlsx?sfvrsn=d912652d_3", destfile = "temp.xlsx", mode = "libcurl")
utils中的错误:: download.file(url = “ https://cdn.who.int/media/docs/default-source/air-pollution-documents/air-quality-and-health/who_aap_2021_v5.xlsx?sfvrsn = d912652d_3”, :无法打开destfile'temp.xlsx',原因'无效参数'
I have been trying to use download.file
in order to import but it keeps getting errors:
utils::download.file(url = "https://cdn.who.int/media/docs/default-source/air-pollution-documents/air-quality-and-health/who_aap_2021_v5.xlsx?sfvrsn=d912652d_3", destfile = "temp.xlsx", mode = "libcurl")
Error in utils::download.file(url =
"https://cdn.who.int/media/docs/default-source/air-pollution-documents/air-quality-and-health/who_aap_2021_v5.xlsx?sfvrsn=d912652d_3",
: cannot open destfile 'temp.xlsx', reason 'Invalid argument'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用
OpenXLSX :: Read.xlsx
,在之后切断字符串。请注意,该表1是一个读数,使用表2。
实际上还可以与
libcurl
一起使用。Using
openxlsx::read.xlsx
, cut off the string after".xlsx"
. Note, that sheet 1 is a readme, use sheet 2.Also works with
libcurl
actually.