I'm trying to build a map on R with ggmap library and an osm background however I get the bellow error.
library(ggmap) library(osmdata) library(devtools)
mad_map <- get_map(getbb("Limete, Kinshasa"), maptype = "terrain", source = "osm")
Erreur : 'get_openstreetmap' is defunct.Use 'OSM is at least temporarily not supported, see https://github.com/dkahle/ggmap/issues/117.' instead.
See help("Defunct")
For me your code is working. try update your librarys. You can update them through: install.packages, just copy my code. I think you don't need "source =", if you use "osm" but your code still works.