Skip to content

Commit

Permalink
put get_nationalvotes examples into donttest
Browse files Browse the repository at this point in the history
  • Loading branch information
tlorusso committed May 12, 2020
1 parent 6575727 commit 2d82baf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions R/get_results.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@
#' @rdname get_nationalvotes
#' @return a tibble containing the results
#' @examples
#' \donttest{
# results <-get_nationalvotes(geolevel="district",from_date = "2018-01-01",to_date="2018-12-31")
#'
#' # Selection by enddate only
#' get_nationalvotes(to_date="1983-12-04")
#'
#'
#' # Selection of a specific votedate
#' get_nationalvotes(votedates="2014-02-09")
#'
#'
#'
#' get_nationalvotes(votedates="2014-02-09")
#'
#' }
#'


get_nationalvotes <- function(geolevel = "municipality",votedates=NULL,from_date=NULL,to_date=NULL){

urls <- jsonlite::fromJSON("https://opendata.swiss/api/3/action/package_show?id=echtzeitdaten-am-abstimmungstag-zu-eidgenoessischen-abstimmungsvorlagen")
Expand Down
7 changes: 3 additions & 4 deletions man/get_nationalvotes.Rd

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

0 comments on commit 2d82baf

Please sign in to comment.