ggmap Error: GeomRasterAnn was built with an incompatible version of ggproto

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

Leave a Comment