Compare currently cached boundaries against the latest available versions to identify updates.

check_boundary_updates(verbose = TRUE)

Arguments

verbose

Logical. Print progress messages? Default is TRUE.

Value

A data.table showing update status, including:

  • territorial_level: The territorial level

  • current_date: Currently cached version date (NA if not cached)

  • latest_date: Latest available version date

  • update_available: Logical indicating if update is available

  • current_source: Source of current version

Examples

if (FALSE) { # \dontrun{
# Check for updates
updates <- check_boundary_updates()

# Download updates if available
if (any(updates$update_available)) {
  download_istat_boundaries()
}
} # }