Skip to contents

Returns data provenance constants: ERDDAP URL, dataset ID, update frequency, license, and citation.

Usage

generate_api_sources(update_frequency = NULL)

Arguments

update_frequency

Character, human-readable update schedule. If NULL (default), uses "Every 6 hours (0:00, 6:00, 12:00, 18:00 UTC)". Typically supplied dynamically from the api_update_schedule target.

Value

A list with _meta and data fields suitable for jsonlite::toJSON().

Examples

if (FALSE) { # \dontrun{
src <- generate_api_sources()
jsonlite::toJSON(src, pretty = TRUE, auto_unbox = TRUE)
} # }