download zipped shapefile and read shapefile.

get_shapefile(path, file_mask = NA, cache_path = NULL, refresh = FALSE)

Arguments

path

URL string to zipped shape file

file_mask

optional grep string in case there are several shape files in the package

cache_path

optional path where to cache the shapefiles

refresh

optional, re-downloads shape file data if set to TRUE

Value

an sf object with the data from the shape file