Skip to contents

Light wrapper function that generates formatted text summaries and saves them to disk.

Usage

write_webtext(
  reference_date,
  disease,
  base_hub_path,
  hub_reports_path,
  included_locations = hubhelpr::included_locations
)

Arguments

reference_date

Character, the reference date for the forecast in YYYY-MM-DD format (ISO-8601).

disease

Character, disease name ("covid" or "rsv"). Used to derive hub name, file prefix, and disease display name.

base_hub_path

Character, path to the forecast hub directory.

hub_reports_path

Character, path to forecast hub reports directory.

included_locations

Character vector of location codes that are expected to report. Default hubhelpr::included_locations.