Running 'testthat.R' [22s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(norgeo)
  > 
  > test_check("norgeo")
  Request failed [502]. Retrying in 1.8 seconds...
  Error: 
  
  ================================================================================
  An HTTP request has been made that vcr does not know how to handle:
  GET http://data.ssb.no/api/klass/v1/classifications/104/changes?from=2018-01-01&to=2019-01-02
  vcr is currently using the following cassette:
    - D:/RCompile/CRANpkg/local/4.3/norgeo.Rcheck/tests/fixtures/change-error.yml
      - record_mode: once
      - match_requests_on: method, uri
  Set `VCR_VERBOSE_ERRORS=TRUE` for more verbose errors
  If you're not sure what to do, open an issue https://github.com/ropensci/vcr/issues
  & see https://books.ropensci.org/http-testing
  ================================================================================
  Request failed [ERROR]. Retrying in 1.7 seconds...
  No encoding supplied: defaulting to UTF-8.
  *** Change table for fylke doesn't exist. From 2018-01-01 to 2019-01-02 *** 
  Error: 
  
  ================================================================================
  An HTTP request has been made that vcr does not know how to handle:
  GET http://data.ssb.no/api/klass/v1/classifications/104/changes?from=2019-01-01&to=2020-01-02
  vcr is currently using the following cassette:
    - D:/RCompile/CRANpkg/local/4.3/norgeo.Rcheck/tests/fixtures/change-error.yml
      - record_mode: once
      - match_requests_on: method, uri
  Set `VCR_VERBOSE_ERRORS=TRUE` for more verbose errors
  If you're not sure what to do, open an issue https://github.com/ropensci/vcr/issues
  & see https://books.ropensci.org/http-testing
  ================================================================================
  Request failed [ERROR]. Retrying in 1 seconds...
  Error: 
  
  ================================================================================
  An HTTP request has been made that vcr does not know how to handle:
  GET http://data.ssb.no/api/klass/v1/classifications/104/changes?from=2019-01-01&to=2020-01-02
  vcr is currently using the following cassette:
    - D:/RCompile/CRANpkg/local/4.3/norgeo.Rcheck/tests/fixtures/change-error.yml
      - record_mode: once
      - match_requests_on: method, uri
  Set `VCR_VERBOSE_ERRORS=TRUE` for more verbose errors
  If you're not sure what to do, open an issue https://github.com/ropensci/vcr/issues
  & see https://books.ropensci.org/http-testing
  ================================================================================
  Request failed [ERROR]. Retrying in 3.9 seconds...
  Error: 
  
  ================================================================================
  An HTTP request has been made that vcr does not know how to handle:
  GET http://data.ssb.no/api/klass/v1/classifications/1/codes?from=2018-01-01&to=2021-01-02
  vcr is currently using the following cassette:
    - D:/RCompile/CRANpkg/local/4.3/norgeo.Rcheck/tests/fixtures/codes-fromto-error.yml
      - record_mode: once
      - match_requests_on: method, uri
  Set `VCR_VERBOSE_ERRORS=TRUE` for more verbose errors
  If you're not sure what to do, open an issue https://github.com/ropensci/vcr/issues
  & see https://books.ropensci.org/http-testing
  ================================================================================
  Request failed [ERROR]. Retrying in 1.4 seconds...
  Error: 
  
  ================================================================================
  An HTTP request has been made that vcr does not know how to handle:
  GET http://data.ssb.no/api/klass/v1/classifications/1/codes?from=2018-01-01&to=2021-01-02
  vcr is currently using the following cassette:
    - D:/RCompile/CRANpkg/local/4.3/norgeo.Rcheck/tests/fixtures/codes-fromto-error.yml
      - record_mode: once
      - match_requests_on: method, uri
  Set `VCR_VERBOSE_ERRORS=TRUE` for more verbose errors
  If you're not sure what to do, open an issue https://github.com/ropensci/vcr/issues
  & see https://books.ropensci.org/http-testing
  ================================================================================
  Request failed [ERROR]. Retrying in 1.1 seconds...
  Request failed [502]. Retrying in 2 seconds...
  Error: 
  
  ================================================================================
  An HTTP request has been made that vcr does not know how to handle:
  GET http://data.ssb.no/api/klass/v1/classifications/104/corresponds?targetClassificationId=131&from=2018-01-01&to=2020-01-02
  vcr is currently using the following cassette:
    - D:/RCompile/CRANpkg/local/4.3/norgeo.Rcheck/tests/fixtures/correspond-error.yml
      - record_mode: once
      - match_requests_on: method, uri
  Set `VCR_VERBOSE_ERRORS=TRUE` for more verbose errors
  If you're not sure what to do, open an issue https://github.com/ropensci/vcr/issues
  & see https://books.ropensci.org/http-testing
  ================================================================================
  Request failed [ERROR]. Retrying in 3.9 seconds...
  No encoding supplied: defaulting to UTF-8.
  [ FAIL 6 | WARN 2 | SKIP 0 | PASS 7 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-get-change.R:14:3): get change - all ────────────────────────────
  Error in `sprintf("%s %s", ss %||% "???", substring(gsub("\n", " ", resp, 
      useBytes = TRUE), 1, 80))`: translating strings with "bytes" encoding is not allowed
  Backtrace:
       ▆
    1. └─vcr::use_cassette(...) at test-get-change.R:14:2
    2.   └─vcr::insert_cassette(...)
    3.     └─Cassette$new(...)
    4.       └─vcr (local) initialize(...)
    5.         └─self$http_interactions()
    6.           └─HTTPInteractionList$new(...)
    7.             └─vcr (local) initialize(...)
    8.               └─base::vapply(...)
    9.                 └─vcr (local) FUN(X[[i]], ...)
   10.                   ├─base::sprintf(...)
   11.                   └─vcr::response_summary(VcrResponse$new()$from_hash(x$response))
   12.                     └─base::sprintf(...)
  ── Error (test-get-change.R:31:3): get change - retry ──────────────────────────
  Error in `sprintf("%s %s", ss %||% "???", substring(gsub("\n", " ", resp, 
      useBytes = TRUE), 1, 80))`: translating strings with "bytes" encoding is not allowed
  Backtrace:
       ▆
    1. └─vcr::use_cassette(...) at test-get-change.R:31:2
    2.   └─vcr::insert_cassette(...)
    3.     └─Cassette$new(...)
    4.       └─vcr (local) initialize(...)
    5.         └─self$http_interactions()
    6.           └─HTTPInteractionList$new(...)
    7.             └─vcr (local) initialize(...)
    8.               └─base::vapply(...)
    9.                 └─vcr (local) FUN(X[[i]], ...)
   10.                   ├─base::sprintf(...)
   11.                   └─vcr::response_summary(VcrResponse$new()$from_hash(x$response))
   12.                     └─base::sprintf(...)
  ── Error (test-get-code.R:2:3): get codes - all ────────────────────────────────
  Error in `sprintf("%s %s", ss %||% "???", substring(gsub("\n", " ", resp, 
      useBytes = TRUE), 1, 80))`: translating strings with "bytes" encoding is not allowed
  Backtrace:
       ▆
    1. └─vcr::use_cassette(...) at test-get-code.R:2:2
    2.   └─vcr::insert_cassette(...)
    3.     └─Cassette$new(...)
    4.       └─vcr (local) initialize(...)
    5.         └─self$http_interactions()
    6.           └─HTTPInteractionList$new(...)
    7.             └─vcr (local) initialize(...)
    8.               └─base::vapply(...)
    9.                 └─vcr (local) FUN(X[[i]], ...)
   10.                   ├─base::sprintf(...)
   11.                   └─vcr::response_summary(VcrResponse$new()$from_hash(x$response))
   12.                     └─base::sprintf(...)
  ── Error (test-get-code.R:19:3): get codes - retry ─────────────────────────────
  Error in `sprintf("%s %s", ss %||% "???", substring(gsub("\n", " ", resp, 
      useBytes = TRUE), 1, 80))`: translating strings with "bytes" encoding is not allowed
  Backtrace:
       ▆
    1. └─vcr::use_cassette(...) at test-get-code.R:19:2
    2.   └─vcr::insert_cassette(...)
    3.     └─Cassette$new(...)
    4.       └─vcr (local) initialize(...)
    5.         └─self$http_interactions()
    6.           └─HTTPInteractionList$new(...)
    7.             └─vcr (local) initialize(...)
    8.               └─base::vapply(...)
    9.                 └─vcr (local) FUN(X[[i]], ...)
   10.                   ├─base::sprintf(...)
   11.                   └─vcr::response_summary(VcrResponse$new()$from_hash(x$response))
   12.                     └─base::sprintf(...)
  ── Error (test-get-correspond.R:3:3): get correspond - all ─────────────────────
  Error in `sprintf("%s %s", ss %||% "???", substring(gsub("\n", " ", resp, 
      useBytes = TRUE), 1, 80))`: translating strings with "bytes" encoding is not allowed
  Backtrace:
       ▆
    1. └─vcr::use_cassette(...) at test-get-correspond.R:3:2
    2.   └─vcr::insert_cassette(...)
    3.     └─Cassette$new(...)
    4.       └─vcr (local) initialize(...)
    5.         └─self$http_interactions()
    6.           └─HTTPInteractionList$new(...)
    7.             └─vcr (local) initialize(...)
    8.               └─base::vapply(...)
    9.                 └─vcr (local) FUN(X[[i]], ...)
   10.                   ├─base::sprintf(...)
   11.                   └─vcr::response_summary(VcrResponse$new()$from_hash(x$response))
   12.                     └─base::sprintf(...)
  ── Error (test-get-correspond.R:19:3): get correspond - retry ──────────────────
  Error in `sprintf("%s %s", ss %||% "???", substring(gsub("\n", " ", resp, 
      useBytes = TRUE), 1, 80))`: translating strings with "bytes" encoding is not allowed
  Backtrace:
       ▆
    1. └─vcr::use_cassette(...) at test-get-correspond.R:19:2
    2.   └─vcr::insert_cassette(...)
    3.     └─Cassette$new(...)
    4.       └─vcr (local) initialize(...)
    5.         └─self$http_interactions()
    6.           └─HTTPInteractionList$new(...)
    7.             └─vcr (local) initialize(...)
    8.               └─base::vapply(...)
    9.                 └─vcr (local) FUN(X[[i]], ...)
   10.                   ├─base::sprintf(...)
   11.                   └─vcr::response_summary(VcrResponse$new()$from_hash(x$response))
   12.                     └─base::sprintf(...)
  
  [ FAIL 6 | WARN 2 | SKIP 0 | PASS 7 ]
  Error: Test failures
  Execution halted