Generate a grid automatically from a country/continent name or a SpatialPolygonsDataFrame or sf polygons
sf
Useful links