This function creates formatted text content for forecast hub visualizations. It processes forecast data, target data, and team metadata to generate a text description.
Usage
generate_webtext_block(
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").
- 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.