Running ‘testthat.R’ [8s/214s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(klassR)
  > 
  > test_check("klassR")
  Connection failed with error code 502
  Saving _problems/test-UpdateKlass-12.R
  Connection failed with error code 502
  Saving _problems/test-UpdateKlass-54.R
  Connection failed with error code 502
  Saving _problems/test-UpdateKlass-124.R
  Connection failed with error code 404
  Connection failed with error code 404
  Connection failed with error code 404
  Saving _problems/test_ListKlass-15.R
  Connection failed with error code 404
  Saving _problems/test_ListKlass-18.R
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 89 ]
  
  ══ 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.")
  ── Failure ('test_ListKlass.R:15:3'): list_klass returns a list ────────────────
  Expected `nrow(klass_table)` > 1.
  Actual comparison: 0.0 <= 1.0
  Difference: -1.0 <= 0
  ── Failure ('test_ListKlass.R:18:3'): list_klass returns a list ────────────────
  Expected `nrow(codelist_table)` > `nrow(klass_table)`.
  Actual comparison: 0 <= 0
  Difference: 0 <= 0
  
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 89 ]
  Error:
  ! Test failures.
  Execution halted