library(ggOceanMaps); basemap(data.frame(lon = c(1,50), lat = c(69,75)))
#> Loading required package: ggplot2
#> ggOceanMaps: Setting data download folder to a temporary folder
#> /var/folders/9v/b70pd53x04d3jjmlrbcgp4_w0000gv/T//Rtmpxhl5z1. This
#> means that any downloaded map data need to be downloaded again when you
#> restart R. To avoid this problem, change the default path to a
#> permanent folder on your computer. Add following lines to your
#> .Rprofile file: {.ggOceanMapsenv <- new.env(); .ggOceanMapsenv$datapath
#> <- 'YourCustomPath'}. You can use usethis::edit_r_profile() to edit the
#> file. '~/ggOceanMapsLargeData' would make it in a writable folder on
#> most operating systems.
#> Error in st_cast.POINT(X[[i]], ...): cannot create MULTILINESTRING from POINT
I get this with certain coordinates:
Created on 2023-11-08 with reprex v2.0.2