如何解决使用ggmap时,“ gzfile中的错误”是什么意思?
尝试获取bbox的Google地形图时出现以下错误。这是什么意思?
48 tiles needed,this may take a while (try a smaller zoom).
Error in gzfile(file,"rb") : cannot open the connection
In addition: Warning message:
In gzfile(file,"rb") :
cannot open compressed file '/var/folders/40/dzd1lk550rs2h6_pkbfdrhm40000gn/T//RtmpqYC95O/ggmap/index.rds',probable reason 'No such file or directory'
这是我的参考代码(我有一个最近使用的API密钥,该密钥应该可以工作):
ts2 <- get_map(location = c(left = -81.652049,bottom = 72.228,right = -80.367,top = 72.5),maptype = 'terrain',source = 'google',force = T )
ggmap(ts2)
解决方法
这可能不是解决问题的确切答案,但是快速卸载/重新安装ggmap
可以解决问题。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。