ifellows / ROSM

R access to high resolution raster maps using the OpenStreetMap protocol. Dozens of road, satellite, and topographic map servers are directly supported, including CloudMade, Mapnik, Bing, stamen, and MapQuest. Maps can be plotted using either base graphics, or ggplot2. This package is not affiliated with the OpenStreetMap.org mapping project.
11 stars 2 forks source link

Error: Objects of type OpenStreetMap not supported by autoplot. #10

Open Edouard-Legoupil opened 4 years ago

Edouard-Legoupil commented 4 years ago

Hi,

After updating to R 4, I am getting this error -

It can be reproduced using the examples here: https://www.rdocumentation.org/packages/OpenStreetMap/versions/0.3.4/topics/autoplot.OpenStreetMap

It has also been flagged here: https://stackoverflow.com/questions/62205981/openstreetmaps-autoplot-error-in-rstudio-server-and-shiny-server-in-r4-0-0

Your package is excellent - I hope you can keep maintaining it!

michielvandijk commented 4 years ago

Hi,

I am getting the same error using the most recent packages and R version. Any updates on this would be most appreciated!

Edouard-Legoupil commented 4 years ago

FYI - Found a solution - it seems we just need to change autoplot() by autoplot.OpenStreetMap()

ifellows commented 4 years ago

Thanks for the report. I'll look into this on monday. I may need to make a change or two to make sure the method is dispatched correctly. I'm not sure what changed in R 4 that would cause this.