Skip to contents

Download shapefile zipfile from googledrive

Usage

download_shapefiles(
  country,
  org_label = "country",
  drive_folder = NULL,
  dest_file = NULL,
  overwrite = TRUE,
  unzip = FALSE
)

Arguments

country

PEPFAR Countryname

org_label

Orgunit label, default is set to country

drive_folder

Googledrive id for all PEPFAR Spatial files

dest_file

Full file name where to download zipped shapefile

overwrite

Should the process overwrite existing files

unzip

Should the zipfile be unzipped

Examples

if (FALSE) {

  cntry <- "Zambia"

  download_shapefiles(country = cntry)

  download_shapefiles(country = cntry, org_label = "snu1", unzip = TRUE)

  download_shapefiles(country = cntry, org_label = "psnu", unzip = TRUE)
}