R/download.R

Defines functions downloadVotes

Documented in downloadVotes

#' Download Dutch Parliamentary Behaviour Dataset from the internet
#'
#' @return voteList object
#' @param url URL to download from. Defaults to downloading from dutchparl dataverse.
#' @param destfile Destination file.
#' @export
#' @examples
#' \dontrun{
#' downloadVotes()
#' }
downloadVotes <- function(url=NULL,destfile="votes.RData") {
  cat("Creative Commons Attribution 4.0 International license applies. See: https://creativecommons.org/licenses/by/4.0/legalcode.")
  if(is.null(url)) url <- "https://dataverse.harvard.edu/api/access/datafile/3000707?gbrecs=true"
  utils::download.file(url, destfile=destfile)
}
louwerse/dutchparl documentation built on July 18, 2017, 4:52 p.m.