Downloads fresh versions of expired codelists and updates cache. Only refreshes codelists that have exceeded their staggered TTL.
Usage
refresh_expired_codelists(
cache_dir = .istatlab_cache_dir(),
force_refresh = FALSE,
verbose = TRUE
)Value
Invisible list with refresh statistics:
refreshed: Number of codelists successfully refreshed
total: Total number of cached codelists
expired: Character vector of expired codelist IDs
Examples
if (FALSE) { # \dontrun{
# Refresh only expired codelists
result <- refresh_expired_codelists()
message("Refreshed ", result$refreshed, " codelists")
# Force refresh all
refresh_expired_codelists(force_refresh = TRUE)
} # }