Skip to contents

Retrieve the list of available snapshots (data vintages) from the CNB ARAD database. Snapshot ids can be passed to the snapshot_id argument of cnb_data().

Usage

cnb_snapshots(lang = "en", api_key = cnb_arad_key())

Arguments

lang

(character(1))
Language for the textual attributes, either "en" or "cs". Default "en".

api_key

(character(1))
API key to use for the request. Defaults to the value returned by cnb_arad_key(), which reads from the CNB_ARAD_KEY environment variable.

Value

A data.table::data.table() with columns snapshot_id and snapshot_name.

Examples

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