Skip to content

Commit

Permalink
0.5.8 release
Browse files Browse the repository at this point in the history
  • Loading branch information
evanodell committed Dec 18, 2017
1 parent a28cc69 commit 185cb45
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 14 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: hansard
Type: Package
Title: Provides Easy Downloading Capabilities for the UK Parliament API
Version: 0.5.7.9000
Date: 2017-12-11
Version: 0.5.8
Date: 2017-12-18
Authors@R: person("Evan Odell", email="evanodell91@gmail.com", role=c("aut", "cre"), comment = c(ORCID='0000-0003-1845-808X'))
Author: Evan Odell [aut, cre]
Maintainer: Evan Odell <evanodell91@gmail.com>
Expand Down
6 changes: 3 additions & 3 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@



# hansard 0.5.7.9000
# hansard 0.5.8

## New Functions

`bill_publications()` function introduced.
`bill_publications()` function introduced, to retrieve data on publications
associated with different bills.

## Performance improvements

Expand Down
1 change: 0 additions & 1 deletion R/bill_publications.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@



#' Bill Publications
#'
#' Returns details of all publications associated with a specific bill
Expand Down
1 change: 0 additions & 1 deletion R/commons_oral_questions.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ commons_oral_questions <- function(mp_id = NULL, answering_department = NULL,

} else {


mp_id <- dplyr::if_else(is.null(mp_id) == FALSE &&
is.na(mp_id) == FALSE,
paste0("&tablingMember=http://data.parliament.uk/members/", mp_id),
Expand Down
7 changes: 3 additions & 4 deletions R/election_results.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@

#' General and By-Election Results
#'
#' Imports results from general and by-elections from the 2010 general election onwards.
#' Imports results from general and by-elections from the
#' 2010 General Election onwards.
#'
#' @param ID Accepts an ID for a general or by-election from the 2010 General
#' Election onwards, and returns the results. If \code{NULL}, returns all
Expand Down Expand Up @@ -46,9 +47,7 @@ election_results <- function(ID = NULL, all_data = FALSE,
extra_args = NULL, tidy = TRUE,
tidy_style = "snake_case", verbose = FALSE) {

id_query <- dplyr::if_else(is.null(ID) == FALSE,
paste0("electionId=", ID),
"")
id_query <- dplyr::if_else(is.null(ID), "", paste0("electionId=", ID))

baseurl <- "http://lda.data.parliament.uk/electionresults.json?"

Expand Down
2 changes: 1 addition & 1 deletion R/lords_divisions.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

#'

#' House of Lords divisions
#'
#' Imports data on House of Lords divisions. Either a general query subject to
Expand Down
2 changes: 1 addition & 1 deletion R/utils-loop.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


## Retrieves the data from the API
## Retrieves data from the API, using pagination
loop_query <- function(query, jpage, verbose){

pages <- list()
Expand Down
3 changes: 2 additions & 1 deletion man/election_results.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 185cb45

Please sign in to comment.