Running 'testthat.R' [107s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(dawaR)
  ## {dawaR} provides data from the Danish Agency of Climate Data
  ## Terms and conditions apply.
  ## Read more at: https://dawadocs.dataforsyningen.dk/dok/om#vilkaar
  > 
  > test_check("dawaR")
  Starting 2 test processes
  [ FAIL 4 | WARN 0 | SKIP 16 | PASS 36 ]
  
  ══ Skipped tests (16) ══════════════════════════════════════════════════════════
  • On CRAN (15): 'test-2-get_data-sections.R:2:3',
    'test-3-get_map_data-sections.R:2:3', 'test-afstemningsomraader.R:3:3',
    'test-afstemningsomraader.R:21:3', 'test-autocomplete.R:3:3',
    'test-base_api.R:18:3', 'test-get_map_data-kommuner.R:2:3',
    'test-get_map_data-politikredse.R:2:3', 'test-get_map_data-regioner.R:2:3',
    'test-get_map_data-vote.R:2:3', 'test-get_map_data.R:3:3',
    'test-status_check.R:20:3', 'test-status_check.R:20:3',
    'test-status_check.R:20:3', 'test-status_check.R:20:3'
  • connection_check() is not TRUE (1): 'test-reverse.R:2:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-base_api.R:16:3'): API base function properly ────────────────
  old[[1]] (`actual`) not equal to new[[1]] (`expected`).
  
  `actual` is a list
  `expected` is NULL
  ── Error ('test-get_data.R:30:3'): get_data() returns data and in the proper format ──
  Error in `do.call(rbind.data.frame, response)`: second argument must be a list
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(get_data(section = "afstemningsomraader")) at test-get_data.R:30:3
   2.   └─rlang::cnd_signal(state$error)
  ── Failure ('test-1-dawa-sections.R:3:5'): All sections are applicable for dawa ──
  Expected `dawa(section = section, per_side = 50)` to run without any errors.
  i Actually got a <rlang_error> with text:
    `resp` must be an HTTP response object, not `NULL`.
  ── Failure ('test-1-dawa-sections.R:3:5'): All sections are applicable for dawa ──
  Expected `dawa(section = section, per_side = 50)` to run without any errors.
  i Actually got a <rlang_error> with text:
    `resp` must be an HTTP response object, not `NULL`.
  
  [ FAIL 4 | WARN 0 | SKIP 16 | PASS 36 ]
  Error: Test failures
  Execution halted