Skip to contents

Low-level transparency helper. Most users should call fetch_facilities() or fetch_facility_gis(). Every value source is a New Hampshire state agency source; federal data is not used for values.

Usage

get_raw_facilities(
  facility_source,
  use_cache = TRUE,
  source = NULL,
  max_age_days = NULL,
  refresh = FALSE
)

Arguments

facility_source

Legacy New Hampshire facilities selector. This is distinct from source, which controls package versus live acquisition.

use_cache

If TRUE (default), use cached ArcGIS results when fresh. Bundled NHED files are read from inst/extdata/facilities.

source

One of "nhed_facility_survey", "nhed_building_aid", "nhdes_lead", "nhed_unused_2025", "nhed_unused_2023".

max_age_days

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

refresh

Force live retrieval. Valid only in live mode.

Value

Raw source data frame or list of data frames.

Examples

if (FALSE) { # \dontrun{
survey <- get_raw_facilities("nhed_facility_survey")
lead <- get_raw_facilities("nhdes_lead")
aid <- get_raw_facilities("nhed_building_aid")
} # }