Skip to contents

Get Bundesrat voting distribution

Usage

bundesrat_stimmverteilung(
  view = "render[iOSDetailsWithoutInnerDate]",
  safe = TRUE,
  refresh = FALSE
)

Arguments

view

Rendering mode for the XML output.

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 one row per XML <item> in the voting distribution feed. Column names correspond to the XML child element names.

<tag>

One column per unique scalar child element (character).

<repeated_tag>

List-column when a child element name appears more than once in a single <item>.

date_time, dateOfIssue_time, imageDate_time, layoutDate_time, startdate_time, stopdate_time

Parsed POSIXct (Europe/Berlin) added when the corresponding source field is present.

Details

Returns the Bundesrat voting distribution. API documentation: https://bundesrat.api.bund.dev.

Examples

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