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

Problem connecting to data server. Please try geobr again in a few minutes. #258

Closed WeiZhiWater closed 3 years ago

WeiZhiWater commented 3 years ago

I am using the geobr in R. The command "br_geo <- read_state(year = 2019)" failed, saying:

.onLoad failed in loadNamespace() for 'urltools', details: call: reverse_strings(paste0(".", cleaned_suffixes)) error: function 'Rcpp_precious_remove' not provided by package 'Rcpp' Problem connecting to data server. Please try geobr again in a few minutes. Using year 2019 Loading data for the whole country

rafapereirabr commented 3 years ago

Could you please paste your R session ?

sessionInfo()

WeiZhiWater commented 3 years ago

sessionInfo()

Sure. Thanks for getting back:

sessionInfo()

R version 4.0.2 (2020-06-22) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19041)

Matrix products: default

locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C LC_TIME=English_United States.1252
system code page: 936

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] geobr_1.6.4 rstatix_0.6.0 RColorBrewer_1.1-2 ggpubr_0.4.0 stringr_1.4.0 xts_0.12-0
[7] zoo_1.8-8 usmap_0.5.0 leaflet_2.0.3 sf_0.9-4 tmaptools_3.1 tmap_3.0
[13] crayon_1.3.4 ggplot2_3.3.2 lubridate_1.7.9 readr_1.3.1 dplyr_1.0.0 dataRetrieval_2.7.6

loaded via a namespace (and not attached): [1] httr_1.4.1 tidyr_1.1.0 viridisLite_0.3.0 carData_3.0-4 sp_1.4-2 cellranger_1.1.0 backports_1.1.7
[8] pillar_1.4.4 lattice_0.20-41 glue_1.4.1 uuid_0.1-4 digest_0.6.25 ggsignif_0.6.0 colorspace_1.4-1
[15] htmltools_0.5.0 XML_3.99-0.3 pkgconfig_2.0.3 broom_0.5.6 raster_3.3-6 haven_2.3.1 stars_0.4-2
[22] purrr_0.3.4 scales_1.1.1 openxlsx_4.1.5 rio_0.5.16 tigris_0.9.4 tibble_3.0.1 car_3.0-8
[29] generics_0.0.2 ellipsis_0.3.1 withr_2.2.0 leafsync_0.1.0 readxl_1.3.1 magrittr_1.5 maptools_1.0-1
[36] nlme_3.1-148 forcats_0.5.0 xml2_1.3.2 lwgeom_0.2-5 foreign_0.8-80 class_7.3-17 data.table_1.12.8 [43] tools_4.0.2 hms_0.5.3 lifecycle_0.2.0 munsell_0.5.0 zip_2.0.4 compiler_4.0.2 e1071_1.7-3
[50] tinytex_0.24 rlang_0.4.6 classInt_0.4-3 units_0.6-7 grid_4.0.2 dichromat_2.0-0 rstudioapi_0.11
[57] rappdirs_0.3.1 htmlwidgets_1.5.1 crosstalk_1.1.0.1 leafem_0.1.1 base64enc_0.1-3 gtable_0.3.0 codetools_0.2-16
[64] curl_4.3 abind_1.4-5 DBI_1.1.0 R6_2.4.1 rgdal_1.5-18 KernSmooth_2.23-17 stringi_1.4.6
[71] parallel_4.0.2 Rcpp_1.0.4.6 vctrs_0.3.1 png_0.1-7 tidyselect_1.1.0 xfun_0.15

rafapereirabr commented 3 years ago

Could you please restart your R session and check if the problem persists?

WeiZhiWater commented 3 years ago

Could you please restart your R session and check if the problem persists?

Yes,I have restarted it. And the same problem with the frozen screen. I even tried the following:

state <- read_state(code_state="SE", year=2018), but stuck here:

image

rafapereirabr commented 3 years ago

It seems like the problem could be with the urltools package. Please install the urltools and crul packages and see if the problem persists

WeiZhiWater commented 3 years ago

crul

Thanks. It worked.