ggmap 错误:GeomRasterAnn 是用不兼容的 ggproto 版本构建的 [英] ggmap Error: GeomRasterAnn was built with an incompatible version of ggproto

查看:24
本文介绍了ggmap 错误:GeomRasterAnn 是用不兼容的 ggproto 版本构建的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 ggmap,但出现以下错误:

I'm using ggmap, and got the error below:

Error: GeomRasterAnn was built with an incompatible version of ggproto.
Please reinstall the package that provides this extension.

我已经安装了 ggmap(2.6.1) 和 ggplot2(2.2.0) 的最新版本,但仍然出现相同的错误.

I've installed the latest version of both ggmap(2.6.1) and ggplot2(2.2.0), but still got the same error.

推荐答案

我今天也遇到了这个问题,我不得不安装 ggplot2 和 ggmap 的 GitHub 开发版本并重新启动 R 才能摆脱这个错误:

I ran into this problem as well today, and I had to install the GitHub development versions of ggplot2 and ggmap and restart R to get rid of this error:

devtools::install_github("dkahle/ggmap")
devtools::install_github("hadley/ggplot2")

在此之前,我还重新安装了这里提到的所有软件包:https://github.com/thomasp85/ggraph/问题/10

Before that, I also reinstalled all of the packages mentioned here: https://github.com/thomasp85/ggraph/issues/10

不知道这些重新安装是否有必要,因为它最终安装了解决问题的 ggmap GitHub 版本,但我想我会提到它以防万一.

Don't know if those reinstalls were necessary, as it was ultimately installing the GitHub version of ggmap that fixed the problem, but thought I'd mention it just in case.

请注意,此问题似乎源于最近对 ggplot2 的更新,如下所述:https://github.com/tidyverse/ggplot2/blob/master/NEWS.md#extensions

Note this problem appears to stem from the recent update to ggplot2 as discussed here: https://github.com/tidyverse/ggplot2/blob/master/NEWS.md#extensions

这篇关于ggmap 错误:GeomRasterAnn 是用不兼容的 ggproto 版本构建的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆