Repository navigation
New features
- New function
read_addresses(), which reads the geolocated addresses of the
National Registry of Addresses for Statistical Purposes (CNEFE), organized by
IBGE. Likeread_statistical_grid()andread_census_tract(), its
code_muniargument is required and has no default, because the data covers
roughly 111 million addresses. Closes 367.
Minor changes
- Updated suggests to use geoarrow (>= 0.4.4),
- Fixed the documentation of
code_muniinread_statistical_grid(). It was
pulled from the shared roxygen template, which states thatcode_muni = "all"
is the default. In this functioncode_muniis required and has no default,
deliberately, because loading the grid for the whole country is slow and may
exhaust memory. read_census_tract()now documents thatcode_tractis required and has no
default, for the same reason. These two functions are the only readers that
do not default to downloading the whole country.- Requires duckdb (>= 1.5.0)
Bug fixes
- geobr now fallsback to ipea servers whenever users cannot access github servers. Closes 447
lookup_muni(): fixed a SQL error when the fuzzy name match received a name with an apostrophe (e.g. "Santa Barbara d'Oest"). The fuzzy match now returns all candidate matches instead of recycling silently, and closes its DuckDB connection. Dropped thegluedependency.cep_to_state(): fixed the Minas Gerais CEP range, which was reversed so every MG CEP raised "CEP not found".read_country(),read_region(),read_pop_arrangements()andread_urban_concentrations()now returnNULLwhen the metadata download fails, like the other readers, instead of erroring.read_health_region()now honoursoutput = "duckdb"whengeometry_levelis"micro"or"macro". These levels aggregate geometries in memory, and the result was returned as ansfwhateveroutputasked for.read_capitals()now passescacheandverboseon toread_municipal_seat(). Both arguments were documented but ignored, socache = FALSEhad no effect andverbose = FALSEstill printed a message.list_geobr()listed two functions that do not exist (read_favelas,read_quilombola_lands) and omittedread_capitals. The catalogue now matches the exported readers exactly. It also returnsNULLwhen the metadata download fails, and rejects a non-scalarwideinstead of silently returning long format.