ipeaGIT / geobr

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

Issue with the interaction with data.table #346

Closed ariaker closed 3 months ago

ariaker commented 3 months ago

I have been trying to simply read_municipality, but I have been getting the following error message: > map_2000 <- read_municipality(year = 2000, simplified = T)

Using year 2000 Error in data.table::rbindlist(files, fill = TRUE) : Class attribute on column 8 of item 5 does not match with column 8 of item 1.

This is my loaded session info:

`R version 4.2.2 (2022-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22631)

Matrix products: default

locale:
[1] LC_COLLATE=Portuguese_Brazil.utf8  LC_CTYPE=Portuguese_Brazil.utf8    LC_MONETARY=Portuguese_Brazil.utf8 LC_NUMERIC=C                       LC_TIME=Portuguese_Brazil.utf8    

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

other attached packages:
[1] geobr_1.8.2

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.11        rstudioapi_0.14    magrittr_2.0.3     units_0.8-4        tidyselect_1.2.0   R6_2.5.1           rlang_1.1.1        fansi_1.0.3        httr_1.4.7         dplyr_1.0.10       tools_4.2.2       
[12] grid_4.2.2         data.table_1.14.8  utf8_1.2.2         KernSmooth_2.23-20 cli_3.6.1          e1071_1.7-13       DBI_1.1.3          class_7.3-20       assertthat_0.2.1   readxl_1.4.1       tibble_3.1.8      
[23] lifecycle_1.0.3    sf_1.0-14          nloptr_2.0.3       vctrs_0.6.3        curl_5.1.0         glue_1.6.2         proxy_0.4-27       pillar_1.9.0       compiler_4.2.2     cellranger_1.1.0   generics_0.1.3    
[34] classInt_0.4-10    pkgconfig_2.0.3   `
rafapereirabr commented 3 months ago

Fixed in the dev version. A new update on CRAN should come asap.