Skip to contents

Fetch DWD avalanche warnings

Usage

dwd_avalanche_warnings(safe = TRUE, refresh = FALSE)

Arguments

safe

Logical; if TRUE (default), apply rate-limiting and cache GET responses to tools::R_user_dir("bunddev", "cache").

refresh

Logical; if TRUE, ignore cached responses and re-fetch from the API (default FALSE).

Value

A one-row tibble:

raw

Full parsed avalanche warning payload (list-column).

Details

Retrieves avalanche warnings from the DWD App API. API documentation: https://dwd.api.bund.dev.

Examples

if (FALSE) { # \dontrun{
dwd_avalanche_warnings()
} # }