clear_cache_tracts() removes census tract Parquet files stored in the
user cache directory by tracts_to_h3() and tracts_to_polygon().
Arguments
- uf
"all", a two-letter UF abbreviation (e.g."BA"), a two-digit numeric state code (e.g.29L), or a seven-digit IBGE municipality code (e.g.2919207). If"all"(default), all cached Parquet files are deleted. Otherwise, only the file for the resolved state is deleted.- verbose
Logical; if
TRUE(default), reports the number of files deleted and the space freed.
Examples
# \donttest{
# Delete all cached census tract Parquets
clear_cache_tracts()
#> ℹ Cache directory does not exist: /home/runner/.cache/R/cnefetools/sc_assets
# Delete only the Parquet for Bahia (several equivalent calls)
clear_cache_tracts("BA")
#> ℹ Cache directory does not exist: /home/runner/.cache/R/cnefetools/sc_assets
clear_cache_tracts(29)
#> ℹ Cache directory does not exist: /home/runner/.cache/R/cnefetools/sc_assets
clear_cache_tracts(2919207) # municipality code → state resolved automatically
#> ℹ Cache directory does not exist: /home/runner/.cache/R/cnefetools/sc_assets
# }