Imports data on Parliamentary Research Briefings. To see a list of possible
topics call research_topics_list() or
research_subtopics_list() for both topics and subtopics. To
see a list of briefing types, call research_types_list(). This
function can return results with newlines in the text of the abstract or
description of the research briefing, represented as '\\n'.
research_briefings(
topic = NULL,
subtopic = NULL,
type = NULL,
extra_args = NULL,
tidy = TRUE,
tidy_style = "snake",
verbose = TRUE
)
hansard_research_briefings(
topic = NULL,
subtopic = NULL,
type = NULL,
extra_args = NULL,
tidy = TRUE,
tidy_style = "snake",
verbose = TRUE
)The topic of the parliamentary briefing.
Defaults to NULL.
The subtopic of the parliamentary briefing.
Defaults to NULL.
The type of research briefing. Defaults to NULL.
Additional parameters and queries to pass to API. These
queries must be strings and start with "&". See the
API documentation
or the package vignette for more details. Defaults to NULL.
Logical parameter. If TRUE, fixes the variable names
in the tibble to remove special characters and superfluous text, and
converts the variable names to a consistent style. Defaults to TRUE.
The style to convert variable names to, if
tidy = TRUE. Accepts any style accepted by to_any_case.
Defaults to 'snake'.
If TRUE, displayes messages on the console on the
progress of the API request. Defaults to TRUE.
A tibble with details on parliamentary research briefings on the given topic.
if (FALSE) {
x <- research_briefings("Housing and planning")
# Requests can be made using lists created using `research_topics_list`
# and `research_subtopics_list`
research_topics_list <- research_topics_list()
x <- research_briefings(topic = research_topics_list[[7]])
research_subtopics_list <- research_subtopics_list()
x <- research_briefings(subtopic = research_subtopics_list[[7]][10])
# Requests for certain briefing types can also be made using lists
# created with `research_types_list`.
research_types_list <- research_types_list()
x <- research_briefings(type = research_types_list[[3]])
}