knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
mnis is a package for downloading data from the Members' Names Information Service API. For information on the API is available here: http://data.parliament.uk/membersdataplatform/default.aspx.
The package is available on CRAN. To install from CRAN run:
Or, if using the
The most recent version on GitHub can be installed by running:
The most up to date documentation for the development version will always be available at https://docs.evanodell.com/mnis/
For an introduction to
mnis, the vignette
vignette("introduction", package = "mnis") is the best place to start. If you are unfamiliar with APIs this tutorial from Zapier is a helpful introduction.
As the Members' Names Information Service has dozens of different search parameters and hundreds of possible combinations of searches, it is not reasonable to build functions for every possible query to the API. However, I will be rolling out functions for potentially common queries as and when I can. If you have any particular queries you would like functions for please let me know and I'll create it.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.