Skip to contents

Get a NINA travel warning by content id

Usage

nina_warning(content_id, safe = TRUE, refresh = FALSE)

Arguments

content_id

Travel warning content id.

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 tibble with detailed warning content rows. Same column structure as nina_warnings(): entry scalar fields (snake_case), plus content_id, response_country, response_last_modified, last_modified_time, and effective_time (POSIXct, Europe/Berlin).

Details

Returns full travel warning content, including HTML blocks.

Examples

if (FALSE) { # \dontrun{
warnings <- nina_warnings()
nina_warning(warnings$content_id[[1]])
} # }