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")
The solution suggested by pbraeutigm works for me too, so the issue might be on a broader scale. Can you provide some information about your R version, package versions, and operating system?