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
Reinstalling ggmap
from source code can fix the problem.
install.packages("ggmap", type = "source")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With