Running 'testthat.R' [82s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(klassR)
  > 
  > test_check("klassR")
  Timeout was reached [data.ssb.no]: SSL/TLS connection timeout
  Timeout was reached [data.ssb.no]: SSL/TLS connection timeout
  Timeout was reached [data.ssb.no]: SSL/TLS connection timeout
  Timeout was reached [data.ssb.no]: SSL/TLS connection timeout
  Connection failed with error code 404
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 90 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-UpdateKlass.R:10:3'): update_klass gir riktig resultat ved enkle endringer ──
  Error: Argument 'txt' must be a JSON string, URL or file.
  Backtrace:
      ▆
   1. └─jsonlite::fromJSON(klassR:::GetUrl2(changes_url), flatten = TRUE) at test-UpdateKlass.R:10:3
   2.   └─jsonlite:::stop("Argument 'txt' must be a JSON string, URL or file.")
  ── Error ('test-UpdateKlass.R:52:3'): update_klass gir riktig resultat ved sammenslåtte koder ──
  Error: Argument 'txt' must be a JSON string, URL or file.
  Backtrace:
      ▆
   1. └─jsonlite::fromJSON(klassR:::GetUrl2(changes_url), flatten = TRUE) at test-UpdateKlass.R:52:3
   2.   └─jsonlite:::stop("Argument 'txt' must be a JSON string, URL or file.")
  ── Error ('test-UpdateKlass.R:122:3'): update_klass gir riktig resultat ved delte koder ──
  Error: Argument 'txt' must be a JSON string, URL or file.
  Backtrace:
      ▆
   1. └─jsonlite::fromJSON(klassR:::GetUrl2(changes_url), flatten = TRUE) at test-UpdateKlass.R:122:3
   2.   └─jsonlite:::stop("Argument 'txt' must be a JSON string, URL or file.")
  ── Error ('test_ApplyKlass.R:3:3'): apply_klass returns correct names for numeric codes ──
  Error in `stop_quietly()`: 
  Backtrace:
      ▆
   1. └─klassR::apply_klass(...) at test_ApplyKlass.R:3:3
   2.   └─klassR::get_klass(...)
   3.     └─klassR:::stop_quietly()
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 90 ]
  Error: Test failures
  Execution halted