List all currently cached boundary shapefiles with metadata.

get_cached_boundaries_info(territorial_level = "all", verbose = TRUE)

Arguments

territorial_level

Character. Filter by territorial level. Options: "comuni", "province", "regioni", "ripartizioni", or "all" (default).

verbose

Logical. Print summary information? Default is TRUE.

Value

A data.table with cached boundary information, including:

  • date: Boundary reference date

  • territorial_level: The territorial level

  • source: Data source

  • file_path: Path to shapefile

  • download_timestamp: When it was downloaded

  • file_size_mb: File size in megabytes

  • exists: Logical indicating if file still exists

Examples

if (FALSE) { # \dontrun{
# Get info on all cached boundaries
info <- get_cached_boundaries_info()

# Get info only for municipalities
info <- get_cached_boundaries_info(territorial_level = "comuni")
} # }