Skip to contents

Get the current Bundestag speaker

Usage

bundestag_speaker(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 with fields extracted from the XML document (same structure rules as bundestag_article()).

<tag>

One column per unique scalar child element of the XML root (character). Exact names depend on the XML document structure.

<repeated_tag>

List-column when a child element name appears more than once.

Details

Returns the current speaker from the plenum feed. API documentation: https://bundesapi.github.io/bundestag-api/.

Examples

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