Running 'testthat.R' [4s/32s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(swissdd)
  **************************************************************
  *                          swissdd 0.0.9                     *
  *                     provided by politan.ch                 *
  *                                                            *
  *                                                            *
  *           Data source: Federal Statistical Office          *
  *                   https://www.bfs.admin.ch/                *
  *                                                            *
  **************************************************************
  > 
  > test_check("swissdd")
  -- 1. Error: available votedates works (@test_available_votedates.R#9)  --------
  character string is not in a standard unambiguous format
  1: available_votedates(geolevel = "canton") at testthat/test_available_votedates.R:9
  2: as.Date(dates)
  3: as.Date.character(dates)
  4: charToDate(x)
  5: stop("character string is not in a standard unambiguous format")
  
  -- 2. Error: get_cantonalvotes works (@test_get_cantonalvotes.R#7)  ------------
  character string is not in a standard unambiguous format
  1: get_cantonalvotes() at testthat/test_get_cantonalvotes.R:7
  2: swissdd::available_votedates(geolevel = "canton")
  3: as.Date(dates)
  4: as.Date.character(dates)
  5: charToDate(x)
  6: stop("character string is not in a standard unambiguous format")
  
  -- 3. Error: get_cantonalvotes_stream works (@test_get_cantonalvotes_stream.R#7)
  HTTP error 404.
  1: get_cantonalvotes_stream() at testthat/test_get_cantonalvotes_stream.R:7
  2: suppressWarnings(jsonlite::fromJSON(urls$result$resources$download_url[selection]))
  3: withCallingHandlers(expr, warning = function(w) invokeRestart("muffleWarning"))
  4: jsonlite::fromJSON(urls$result$resources$download_url[selection])
  5: parse_and_simplify(txt = txt, simplifyVector = simplifyVector, simplifyDataFrame = simplifyDataFrame, 
         simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
  6: parseJSON(txt, bigint_as_char)
  7: parse_con(txt, bigint_as_char)
  8: open(con, "rb")
  9: open.connection(con, "rb")
  
  == testthat results  ===========================================================
  OK: 7 SKIPPED: 0 WARNINGS: 0 FAILED: 3
  1. Error: available votedates works (@test_available_votedates.R#9) 
  2. Error: get_cantonalvotes works (@test_get_cantonalvotes.R#7) 
  3. Error: get_cantonalvotes_stream works (@test_get_cantonalvotes_stream.R#7) 
  
  Error: testthat unit tests failed
  Execution halted