geobr icon indicating copy to clipboard operation
geobr copied to clipboard

Progress bars always showing 100%

Open dhersz opened this issue 5 years ago • 2 comments

Progress bars "skips" from 0% to 100%, no matter how much of the action has been completed. I first noticed this when using read_census_tract, but it seems to extend to other functions, such as read_municipality, as well.

sc <- read_census_tract(3304557)
#> Using year 2010
#>   |                                                                              |                                                                      |   0%  |                                                                              |======================================================================| 100%

rio <- read_municipality("RJ")
#> Using year 2010
#>   |                                                                              |                                                                      |   0%  |                                                                              |======================================================================| 100%

dhersz avatar May 19 '20 13:05 dhersz

Thanks for the heads up. @CaioNG , could you please have a look at this?

rafapereirabr avatar May 19 '20 15:05 rafapereirabr

This is a strange behavior from the httr package. I've opend an issue in their repo.

reprex.

library(httr)

file_url <- "http://www.ipea.gov.br/geobr/data_gpkg/census_tract/2010/33_simplified.gpkg"

httr::GET(url=file_url, httr::progress(type = "down") )

rafapereirabr avatar Feb 11 '21 22:02 rafapereirabr

Fixed in dev version with fd9fd3d7.

rafapereirabr avatar Jul 09 '23 01:07 rafapereirabr