Running 'testthat.R' [22s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(statsDK)
  > 
  > test_check("statsDK")
  -- 1. Error: (unknown) (@test_fixers.R#8)  -------------------------------------
  Timeout was reached: Connection timed out after 10000 milliseconds
  1: suppressMessages(retrieve_data("FOLK1A", TID = "*", ALDER = "IALT", CIVILSTAND = "TOT", 
         lang = "da")) at testthat/test_fixers.R:8
  2: withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
  3: retrieve_data("FOLK1A", TID = "*", ALDER = "IALT", CIVILSTAND = "TOT", lang = "da")
  4: suppressMessages(retrieve_metadata(table_id, base_url))
  5: withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
  6: retrieve_metadata(table_id, base_url)
  7: suppressWarnings(httr::GET(url))
  8: withCallingHandlers(expr, warning = function(w) invokeRestart("muffleWarning"))
  9: httr::GET(url)
  10: request_perform(req, hu$handle$handle)
  11: request_fetch(req$output, req$url, handle)
  12: request_fetch.write_memory(req$output, req$url, handle)
  13: curl::curl_fetch_memory(url, handle = handle)
  
  -- 2. Error: (unknown) (@test_retrievers.R#7)  ---------------------------------
  Timeout was reached: Connection timed out after 10015 milliseconds
  1: retrieve_subjects() at testthat/test_retrievers.R:7
  2: suppressWarnings(httr::GET(url))
  3: withCallingHandlers(expr, warning = function(w) invokeRestart("muffleWarning"))
  4: httr::GET(url)
  5: request_perform(req, hu$handle$handle)
  6: request_fetch(req$output, req$url, handle)
  7: request_fetch.write_memory(req$output, req$url, handle)
  8: curl::curl_fetch_memory(url, handle = handle)
  
  == testthat results  ===========================================================
  OK: 0 SKIPPED: 0 WARNINGS: 0 FAILED: 2
  1. Error: (unknown) (@test_fixers.R#8) 
  2. Error: (unknown) (@test_retrievers.R#7) 
  
  Error: testthat unit tests failed
  Execution halted