inst/app/utils/get-shape-files.R

# Baixar shape file das unidades federativas brasileiras
link <- "ftp://geoftp.ibge.gov.br/organizacao_do_territorio/malhas_territoriais/malhas_municipais/municipio_2016/Brasil/BR/"
link_estados <- paste0(link, "br_unidades_da_federacao.zip")
download.file(link_estados, destfile = "inst/app/utils/shp_uf.zip")
unzip("inst/app/utils/shp_uf.zip", exdir = "inst/app/utils/")
file.remove("inst/app/utils/shp_uf.zip")
conre3/pesqEle documentation built on June 25, 2020, 5:28 a.m.