Use the geodata package (the successor to raster::getData ) to fetch administrative boundaries directly into your environment.
print(gdf.crs) # EPSG:4326 print(gdf.head()) download gadm data version 36 work
: Available as a single GeoPackage (the current standard format) or as a shapefile. Use the geodata package (the successor to raster::getData
The legacy getData() function from the raster package has been deprecated. To fetch specific GADM versions directly in R, use the newer CRAN geodata library : Download GADM data (version 3.6) download gadm data version 36 work