Running ‘testthat.R’ [2s/4s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(klassR)
  > 
  > test_check("klassR")
  Connection failed with error code 500
  Connection failed with error code 500
  Connection failed with error code 500
  Connection failed with error code 500
  Connection failed with error code 500
  Connection failed with error code 500
  Connection failed with error code 500
  Connection failed with error code 500
  Connection failed with error code 500
  Connection failed with error code 500
  Connection failed with error code 500
  [ FAIL 13 | WARN 0 | SKIP 0 | PASS 0 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_ApplyKlass.R:4'): ApplyKlass returns correct names for numeric codes ──
  Error in `stop_quietly()`: 
  Backtrace:
      ▆
   1. └─klassR::ApplyKlass(klassdata$kommune, klass = 131, date = "2015-01-01") at test_ApplyKlass.R:4:2
   2.   └─klassR::GetKlass(...)
   3.     └─klassR:::stop_quietly()
  ── Error ('test_ApplyKlass.R:12'): ApplyKlass returns correct names for character codes ──
  Error in `stop_quietly()`: 
  Backtrace:
      ▆
   1. └─klassR::ApplyKlass(c("INNL", "UTL", "B_FIN"), klass = 39, date = "2019-01-01") at test_ApplyKlass.R:12:2
   2.   └─klassR::GetKlass(...)
   3.     └─klassR:::stop_quietly()
  ── Error ('test_ApplyKlass.R:20'): ApplyKlass returns correct language ─────────
  Error in `stop_quietly()`: 
  Backtrace:
      ▆
   1. └─klassR::ApplyKlass(...) at test_ApplyKlass.R:20:2
   2.   └─klassR::GetKlass(...)
   3.     └─klassR:::stop_quietly()
  ── Error ('test_ApplyKlass.R:35'): ApplyKlass returns correctly for character codes ──
  Error in `stop_quietly()`: 
  Backtrace:
      ▆
   1. └─klassR::ApplyKlass(sektor, 39, date = "2020-01-01") at test_ApplyKlass.R:35:9
   2.   └─klassR::GetKlass(...)
   3.     └─klassR:::stop_quietly()
  ── Error ('test_ApplyKlass.R:41'): Check levelCheck for numerical codes ────────
  Error in `stop_quietly()`: 
  Backtrace:
      ▆
   1. └─klassR::GetKlass(7, date = "2020-01-01") at test_ApplyKlass.R:41:2
   2.   └─klassR:::stop_quietly()
  ── Error ('test_ApplyKlass.R:51'): Check levelCheck for character codes ────────
  Error in `stop_quietly()`: 
  Backtrace:
      ▆
   1. └─klassR::GetKlass(39, date = "2020-01-01") at test_ApplyKlass.R:51:2
   2.   └─klassR:::stop_quietly()
  ── Error ('test_ApplyKlass.R:59'): ApplyKlass can return a variant classification ──
  Error in `stop_quietly()`: 
  Backtrace:
      ▆
   1. └─klassR::ApplyKlass(...) at test_ApplyKlass.R:59:2
   2.   └─klassR::GetKlass(...)
   3.     └─klassR:::get_variant_name(variant)
   4.       └─klassR:::stop_quietly()
  ── Error ('test_ApplyKlass.R:76'): ApplyKlass works for variant classification with Norwegian characters in the variant name ──
  Error in `stop_quietly()`: 
  Backtrace:
      ▆
   1. └─klassR::ApplyKlass(...) at test_ApplyKlass.R:76:2
   2.   └─klassR::GetKlass(...)
   3.     └─klassR:::get_variant_name(variant)
   4.       └─klassR:::stop_quietly()
  ── Error ('test_GetKlass.R:4'): GetKlass returns a classification ──────────────
  Error in `stop_quietly()`: 
  Backtrace:
      ▆
   1. └─klassR::GetKlass(klass = 131, date = "2015-01-01") at test_GetKlass.R:4:2
   2.   └─klassR:::stop_quietly()
  ── Error ('test_GetKlass.R:10'): GetKlass returns a classification with Norwegian letters ──
  Error in `stop_quietly()`: 
  Backtrace:
      ▆
   1. └─klassR::GetKlass(klass = 131, date = "2015-01-01") at test_GetKlass.R:10:2
   2.   └─klassR:::stop_quietly()
  ── Error ('test_GetKlass.R:16'): GetKlass returns a correspondence table ───────
  Error: lexical error: invalid char in json text.
                                         Could not open JPA EntityManage
                       (right here) ------^
  
  Backtrace:
      ▆
   1. └─klassR::GetKlass(klass = 104, correspond = 131, date = "2015-01-01") at test_GetKlass.R:16:2
   2.   └─jsonlite::fromJSON(klass_text, flatten = TRUE)
   3.     └─jsonlite:::parse_and_simplify(...)
   4.       └─jsonlite:::parseJSON(txt, bigint_as_char)
   5.         └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error ('test_GetKlass.R:23'): GetKlass returns a correspondence table in both directions ──
  Error: lexical error: invalid char in json text.
                                         Could not open JPA EntityManage
                       (right here) ------^
  
  Backtrace:
      ▆
   1. └─klassR::GetKlass(klass = 104, correspond = 131, date = "2020-02-01") at test_GetKlass.R:23:2
   2.   └─jsonlite::fromJSON(klass_text, flatten = TRUE)
   3.     └─jsonlite:::parse_and_simplify(...)
   4.       └─jsonlite:::parseJSON(txt, bigint_as_char)
   5.         └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error ('test_GetKlass.R:33'): GetKlass returns a valid variant ──────────────
  Error in `stop_quietly()`: 
  Backtrace:
      ▆
   1. └─klassR::GetKlass(klass = 6, variant = 1616, date = "2021-01-02") at test_GetKlass.R:33:2
   2.   └─klassR:::get_variant_name(variant)
   3.     └─klassR:::stop_quietly()
  
  [ FAIL 13 | WARN 0 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted