问题描述
错误:GeomRasterAnn使用ggproto的不兼容版本构建。
请重新安装提供此分机的套餐。
我已经安装了最新版本的ggmap(2.6.1)和ggplot2(2.2.0 ),但仍然有同样的错误。
我今天遇到了这个问题,我不得不安装GitHub开发版本的ggplot2和ggmap,并重新启动R来摆脱这个错误:
$ $ $ $ $ $ $ $ $ $ devtools :: install_github(dkahle / ggmap )
devtools :: install_github(hadley / ggplot2)
在此之前,我也重新安装了这里提到的所有软件包:
不知道这些重新安装是否有必要,因为它最终会安装GitHub版本的ggmap来解决问题,但我认为我会提及它以防万一。
请注意,此问题似乎源于最近更新到ggplot2,如此处所述:
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.
I've installed the latest version of both ggmap(2.6.1) and ggplot2(2.2.0), but still got the same error.
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")
Before that, I also reinstalled all of the packages mentioned here: https://github.com/thomasp85/ggraph/issues/10
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.
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版本构建的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!