Allows to use the RDB API's primitive search functionality. Note that
the search is not case-sensitive and no fuzzy search is performed (i.e. only exact matches are returned).
only up to the first 5 matching results will be returned.
Usage
search_rfrnds(
term,
use_testing_server = pal::pkg_config_val(key = "use_testing_server", pkg = this_pkg)
)
Details
Note that this function is probably not of much use since it doesn't return any additional information about the matched referendums but only the English titles.
See also
Other referendum data functions:
add_rfrnds()
,
assert_vars()
,
count_rfrnds()
,
delete_rfrnds()
,
download_file_attachment()
,
edit_rfrnds()
,
rfrnd()
,
rfrnd_exists()
,
rfrnds()
,
rfrnds_old()
,
validate_rfrnds()
Examples
rdb::search_rfrnds("freedom")
#> [1] "Amendment of the law on demolition, conversion and renovation of residential buildings (\"more freedom for renters\") of 13 November 2015"
#> [2] "Citizens' initiative ‘For freedom and physical integrity’"
#> [3] "Constitutional proposal 2-267: Guarantee of academic freedom in any institution of higher learning"
#> [4] "Constitutional reform (freedom of information)"
#> [5] "Constitutional reform (human and civil rights and freedoms)"