ipeaGIT / geobr

Easy access to official spatial data sets of Brazil in R and Python
https://ipeagit.github.io/geobr/
789 stars 118 forks source link

Error downloading census tracts #239

Closed sachasiani closed 3 years ago

sachasiani commented 3 years ago

I am trying to get the 2010 census tracts for some states. Some of the states are returning an error. I am running the following code:

library(tidyverse)
library(readr)
library(sf)
library(geobr)

state_i <- 52
tracts <- read_census_tract(code_tract = state_i, 
                               year = 2010,
                               simplified = F)

The error suggests that the downloaded file is corupted

Error: Cannot open "C:\Users\Siani\AppData\Local\Temp\RtmpczgG43\53census_tract_2010.gpkg"; The source could be corrupt or not supported. See st_drivers() for a list of supported formats.

Obrigado,

-Sacha

rafapereirabr commented 3 years ago

Dear Sacha, we were having some stability issues with our servers earlier today, but things are back to normal now. Could you please restart your R session and run the code again?

sachasiani commented 3 years ago

It works. Thanks a lot, Rafael!