Running 'testthat.R' [113s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(klassR)
  > 
  > test_check("klassR")
  Timeout was reached: [data.ssb.no] Connection timed out after 10000 milliseconds
  Timeout was reached: [data.ssb.no] Connection timed out after 10004 milliseconds
  Timeout was reached: [data.ssb.no] Connection timed out after 10001 milliseconds
  Timeout was reached: [data.ssb.no] Connection timed out after 10006 milliseconds
  Timeout was reached: [data.ssb.no] Connection timed out after 10005 milliseconds
  Timeout was reached: [data.ssb.no] Connection timed out after 10009 milliseconds
  Timeout was reached: [data.ssb.no] Connection timed out after 10012 milliseconds
  Timeout was reached: [data.ssb.no] Connection timed out after 10015 milliseconds
  Timeout was reached: [data.ssb.no] Connection timed out after 10015 milliseconds
  == Failed tests ================================================================
  -- Error (test_ApplyKlass.R:4:3): ApplyKlass returns correct names for numeric codes --
  Error in `stop_quietly()`: 
  Backtrace:
      x
   1. \-klassR::ApplyKlass(klassdata$kommune, klass = 131, date = "2015-01-01") test_ApplyKlass.R:4:2
   2.   \-klassR::GetKlass(...)
   3.     \-klassR:::stop_quietly()
  -- Error (test_ApplyKlass.R:12:3): ApplyKlass returns correct names for character codes --
  Error in `stop_quietly()`: 
  Backtrace:
      x
   1. \-klassR::ApplyKlass(c("INNL", "UTL", "B_FIN"), klass = 39, date = "2019-01-01") test_ApplyKlass.R:12:2
   2.   \-klassR::GetKlass(...)
   3.     \-klassR:::stop_quietly()
  -- Error (test_ApplyKlass.R:20:3): ApplyKlass returns correct language ---------
  Error in `stop_quietly()`: 
  Backtrace:
      x
   1. \-klassR::ApplyKlass(...) test_ApplyKlass.R:20:2
   2.   \-klassR::GetKlass(...)
   3.     \-klassR:::stop_quietly()
  -- Error (test_ApplyKlass.R:35:10): ApplyKlass returns correctly for character codes --
  Error in `stop_quietly()`: 
  Backtrace:
      x
   1. \-klassR::ApplyKlass(sektor, 39, date = "2020-01-01") test_ApplyKlass.R:35:9
   2.   \-klassR::GetKlass(...)
   3.     \-klassR:::stop_quietly()
  -- Error (test_ApplyKlass.R:41:3): Check levelCheck for numerical codes --------
  Error in `stop_quietly()`: 
  Backtrace:
      x
   1. \-klassR::GetKlass(7, date = "2020-01-01") test_ApplyKlass.R:41:2
   2.   \-klassR:::stop_quietly()
  -- Error (test_ApplyKlass.R:51:3): Check levelCheck for character codes --------
  Error in `stop_quietly()`: 
  Backtrace:
      x
   1. \-klassR::GetKlass(39, date = "2020-01-01") test_ApplyKlass.R:51:2
   2.   \-klassR:::stop_quietly()
  -- Error (test_ApplyKlass.R:59:3): ApplyKlass can return a variant classification --
  Error in `stop_quietly()`: 
  Backtrace:
      x
   1. \-klassR::ApplyKlass(...) test_ApplyKlass.R:59:2
   2.   \-klassR::GetKlass(...)
   3.     \-klassR:::get_variant_name(variant)
   4.       \-klassR:::stop_quietly()
  -- Error (test_GetKlass.R:4:3): GetKlass returns a classification --------------
  Error in `stop_quietly()`: 
  Backtrace:
      x
   1. \-klassR::GetKlass(klass = 131, date = "2015-01-01") test_GetKlass.R:4:2
   2.   \-klassR:::stop_quietly()
  -- Error (test_GetKlass.R:10:3): GetKlass returns a classification with Norwegian letters --
  Error in `stop_quietly()`: 
  Backtrace:
      x
   1. \-klassR::GetKlass(klass = 131, date = "2015-01-01") test_GetKlass.R:10:2
   2.   \-klassR:::stop_quietly()
  -- Error (test_GetKlass.R:16:3): GetKlass returns a correspondence table -------
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [data.ssb.no] Connection timed out after 10001 milliseconds
  Backtrace:
      x
   1. \-klassR::GetKlass(klass = 104, correspond = 131, date = "2015-01-01") test_GetKlass.R:16:2
   2.   \-klassR:::GetUrl2(url, check = FALSE)
   3.     \-httr::GET(url = url)
   4.       \-httr:::request_perform(req, hu$handle$handle)
   5.         +-httr:::request_fetch(req$output, req$url, handle)
   6.         \-httr:::request_fetch.write_memory(req$output, req$url, handle)
   7.           \-curl::curl_fetch_memory(url, handle = handle)
  -- Error (test_GetKlass.R:23:3): GetKlass returns a correspondence table in both directions --
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [data.ssb.no] Connection timed out after 10015 milliseconds
  Backtrace:
      x
   1. \-klassR::GetKlass(klass = 104, correspond = 131, date = "2020-02-01") test_GetKlass.R:23:2
   2.   \-klassR:::GetUrl2(url, check = FALSE)
   3.     \-httr::GET(url = url)
   4.       \-httr:::request_perform(req, hu$handle$handle)
   5.         +-httr:::request_fetch(req$output, req$url, handle)
   6.         \-httr:::request_fetch.write_memory(req$output, req$url, handle)
   7.           \-curl::curl_fetch_memory(url, handle = handle)
  
  [ FAIL 11 | WARN 0 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted