din*_*ing 53 r ggplot2 ggmap ggproto
我正在使用ggmap,并得到以下错误:
Error: GeomRasterAnn was built with an incompatible version of ggproto.
Please reinstall the package that provides this extension.
Run Code Online (Sandbox Code Playgroud)
我已经安装了ggmap(2.6.1)和ggplot2(2.2.0)的最新版本,但仍然遇到了同样的错误.
jas*_*shu 45
我今天遇到了这个问题,我不得不安装Ggpub开发版本的ggplot2和ggmap并重新启动R来摆脱这个错误:
devtools::install_github("dkahle/ggmap")
devtools::install_github("hadley/ggplot2")
Run Code Online (Sandbox Code Playgroud)
在此之前,我还重新安装了这里提到的所有软件包:https://github.com/thomasp85/ggraph/issues/10
不知道那些重新安装是否必要,因为它最终安装了修复问题的ggHub版本的ggmap,但我想我会提到它以防万一.
请注意,此问题似乎源于最近对ggplot2的更新,如下所述:https://github.com/tidyverse/ggplot2/blob/master/NEWS.md#extensions
Cyr*_*lle 25
ggmap从源代码重新安装可以解决问题.
install.packages("ggmap", type = "source")
Run Code Online (Sandbox Code Playgroud)
按照上述步骤执行某些计算后问题仍然存在.因此我安装了旧版本的ggplot2.
library(devtools)
install_version("ggplot2", version = "2.1.0", repos = "http://cran.us.r-project.org")
Run Code Online (Sandbox Code Playgroud)