r-spatial / mapview

Interactive viewing of spatial data in R
https://r-spatial.github.io/mapview/
GNU General Public License v3.0
516 stars 91 forks source link

Mapview function won't work in R 4.0.0 #292

Closed nexusal closed 4 years ago

nexusal commented 4 years ago

After updating R from 3.6.3 ( did pretty well in this version ) to 4.0.0 , cpu utilization almost reach to 100% when run this function, even with the franconia data still didn't work (return blank window) , is this a common problem?

tim-salabim commented 4 years ago

You're likely experiencing an RStudio issue, see https://github.com/rstudio/rstudio/issues/6737

Upgrading RStudio to the latest preview version should solve your issue

MartinBeal commented 4 years ago

Downloading the latest preview version of Rstudio solved the high CPU usage issue, but now I am getting what I believe is this #6893 issue, where the mapview() function runs, showing no error, but nothing appears in the viewer panel. This is also referred to at the end of #6736.

Is there a known solution to this issue?

tim-salabim commented 4 years ago

Ok, this is not a mapview issue, so there's little we can do btu wait for it to be fixed. In the meantime you can set mapviewOptions(viewer.suppress = FALSE) which should tell mapview to always open in the browser rather than the RStudio viewer pane.