Checks each codelist against its staggered TTL and returns a list of codelists that need to be refreshed.
Usage
check_codelist_expiration(
codelist_ids = NULL,
cache_dir = .istatlab_cache_dir(),
force_check = FALSE
)Examples
if (FALSE) { # \dontrun{
# Check which codelists are expired
expired <- check_codelist_expiration()
message("Expired codelists: ", paste(expired, collapse = ", "))
# Check specific codelists
expired <- check_codelist_expiration(c("CL_FREQ", "CL_ITTER107"))
# Force check all as expired
all_cls <- check_codelist_expiration(force_check = TRUE)
} # }