Warning message: In sp::proj4string(geo) CRS object has comment

Viewed 18

I am trying to run this vignette using the SUMMER package on my own data (shapefile of London at the LSOA level). This is how I import the shapefile:

#geo = readOGR("./LSOA11_London_noclip/LSOA11_London_noclip.shp")

The vignette works fine until I try to run the part under "We can visualize one or more metrics on the map is by the mapPlot function." I get the following error :

Warning message: In sp::proj4string(geo) : CRS object has comment, which is lost in output; in tests, see https://cran.r-project.org/web/packages/sp/vignettes/CRS_warnings.html

I am aware of this topic, but when I try to import the shapefile with the sf package and rerun, I get another error:

Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘proj4string’ for signature ‘"sf"’

Thank you!

0 Answers
Related