Skip to contents

Facilities sources are mostly point-in-time snapshots. This helper filters by year strings in vintage where the category has source vintages matching the requested years; otherwise it returns the available source rows with a message.

Usage

fetch_facilities_multi(
  category,
  years,
  tidy = TRUE,
  use_cache = TRUE,
  source = NULL,
  max_age_days = NULL,
  refresh = FALSE
)

Arguments

category

See fetch_facilities().

years

Vector of years.

tidy, use_cache

See fetch_facilities().

source

Requested acquisition mode: "package" (default) or explicit "live" where a runtime producer exists. Retained-only surfaces reject live requests; refresh their files through the documented manual harvest.

max_age_days

Maximum reusable live-cache age in elapsed 24-hour days.

refresh

Force live retrieval. Valid only in live mode.

Value

Combined facilities long-schema data.

Examples

if (FALSE) { # \dontrun{
fetch_facilities_multi("closures", c(2023, 2025))
fetch_facilities_multi("finance", 2026)
fetch_facilities_multi("environmental", 2024:2026)
} # }