Open leppott opened 2 years ago
Will need to fix before can submit to CRAN.
Can grab the last version of rgdal (1.6.7) from the CRAN archive.
'strata' function is broken.
data_strata<- strata(data[1:5, ], col_lat, col_lon) Error in UseMethod("as_s2_geography") : no applicable method for 'as_s2_geography' applied to an object of class "c('SpatialPolygonsDataFrame', 'SpatialPolygons', 'Spatial')"
Assume it is related to the move away from the rgdal
package. But MazamaSpatialUtils
rather than rgdal
is used in the code.
Describe the bug The
sp
,rgdal
, andmaptools
packages are to be deprecated at the end of 2023.To Reproduce Replace packages with some combination of functions from
sf
,GEOS
,GDAL
, orPROJ
.Expected behavior NA
Additional context https://www.r-bloggers.com/2022/04/r-spatial-evolution-retirement-of-rgdal-rgeos-and-maptools/