rgdal, rgeos and maptools will be retired on Jan 1st 2024. raster and sp are based on rgdal/rgeos so must not be used either.
Must transition to sf, terra/stars without depending on sp and raster. Need to build new functions that return sf/terra object in replacement of function that return sp/raster objects.