Running ‘testthat.R’ [10s/17s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(norgeo)
  norgeo version 2.1.4
  > 
  > test_check("norgeo")
  Start casting geo codes from API ............
  Data for grunnkrets to bydel in 2020 have 1644 rows
  Data for grunnkrets to kommune in 2020 have 14453 rows
  Data for kommune to fylke in 2020 have 356 rows
  No code changes from 1999-01-02 to 2000-01-02 or not available via API
  No code changes from 2000-01-02 to 2001-01-02 or not available via API
  No code changes from 2001-01-02 to 2002-01-02 or not available via API
  
  Grunnkrets codes change before 2002 are from the dataset `GrunnkretsBefore2002`
  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-02&to=2019-01-02
  vcr is currently using the following cassette:
    - /data/gannet/ripley/R/packages/tests-clang/norgeo.Rcheck/tests/fixtures/change.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...
  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-02&to=2019-01-02
  vcr is currently using the following cassette:
    - /data/gannet/ripley/R/packages/tests-clang/norgeo.Rcheck/tests/fixtures/change.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...
  
  
  
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 12 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-get-change.R:19'): get change - all ────────────────────────────
  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-02&to=2019-01-02
  vcr is currently using the following cassette:
    - /data/gannet/ripley/R/packages/tests-clang/norgeo.Rcheck/tests/fixtures/change.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
  ================================================================================
  
  
  Backtrace:
      ▆
   1. ├─vcr::use_cassette(...) at test-get-change.R:19:2
   2. │ └─cassette$call_block(...)
   3. └─norgeo::get_change(type = "fylke", from = 2018, to = 2020) at test-get-change.R:20:4
   4.   └─httr::RETRY("GET", url = chgUrl, query = chgQ)
  ── Failure ('test-get-change.R:28'): Valid date year ───────────────────────────
  set_year(2021, FALSE) (`actual`) not equal to "2021-01-01" (`expected`).
  
  `actual`:   "2021-01-02"
  `expected`: "2021-01-01"
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 12 ]
  Error: Test failures
  Execution halted