我使用的是ggmap,得到的错误如下:
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),但仍然收到相同的错误。
发布于 2016-11-17 07:45:14
我今天也遇到了这个问题,我不得不安装ggplot2和ggmap的GitHub开发版本,并重新启动R来消除这个错误:
devtools::install_github("dkahle/ggmap")
devtools::install_github("hadley/ggplot2")在此之前,我还重新安装了这里提到的所有包:https://github.com/thomasp85/ggraph/issues/10
我不知道这些重新安装是否是必要的,因为它最终安装了修复问题的GitHub版本的ggmap,但我想我应该提一下以防万一。
注意:这个问题似乎源于这里讨论的ggplot2的最新更新:https://github.com/tidyverse/ggplot2/blob/master/NEWS.md#extensions
发布于 2017-01-25 17:55:40
从源代码重新安装ggmap可以解决此问题。
install.packages("ggmap", type = "source")发布于 2016-11-17 17:55:09
执行上述步骤后,该问题仍然存在于某些计算中。因此,我安装了较旧版本的ggplot2。
library(devtools)
install_version("ggplot2", version = "2.1.0", repos = "http://cran.us.r-project.org")https://stackoverflow.com/questions/40642850
复制相似问题