Running ‘testthat.R’ [9s/25s]
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-01 to 2000-01-02 or not available via API
  No code changes from 2000-01-01 to 2001-01-02 or not available via API
  No code changes from 2001-01-01 to 2002-01-02 or not available via API
  
  Grunnkrets codes change before 2002 are from the dataset `GrunnkretsBefore2002`
  No code changes from 2018-01-01 to 2019-01-02 or not available via API
  
  
  
  
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 12 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-cast-geo.R:4:3'): Cast geo ───────────────────────────────────
  cast_geo(2020) (`actual`) not equal to `dt` (`expected`).
  
  actual vs expected
                                                                               name
    actual[419, ]     Bud                                                          
    actual[420, ]     Eide                                                         
    actual[421, ]     Uoppgitt delområde                                           
  - actual[422, ]     Nordland                                                     
  + expected[422, ]   Nordland - Nordlánnda                                        
    actual[423, ]     Bodø                                                         
    actual[424, ]     Sentrum                                                      
    actual[425, ]     Vestbyen                                                     
  
        actual$name          | expected$name                
  [419] "Bud"                | "Bud"                   [419]
  [420] "Eide"               | "Eide"                  [420]
  [421] "Uoppgitt delområde" | "Uoppgitt delområde"    [421]
  [422] "Nordland "          - "Nordland - Nordlánnda" [422]
  [423] "Bodø"               | "Bodø"                  [423]
  [424] "Sentrum"            | "Sentrum"               [424]
  [425] "Vestbyen"           | "Vestbyen"              [425]
  ── Failure ('test-track-change.R:5:3'): Track change ───────────────────────────
  track_change("fylke", 2018, 2020) (`actual`) not equal to `dtOut` (`expected`).
  
  actual vs expected
                                                                         newName
    actual[1, ]    Oslo                                                         
    actual[2, ]    Rogaland                                                     
    actual[3, ]    Møre og Romsdal                                              
  - actual[4, ]    Nordland                                                     
  + expected[4, ]  Nordland - Nordlánnda                                        
    actual[5, ]    Viken                                                        
    actual[6, ]    Viken                                                        
    actual[7, ]    Viken                                                        
  
      actual$newName    | expected$newName           
  [1] "Oslo"            | "Oslo"                  [1]
  [2] "Rogaland"        | "Rogaland"              [2]
  [3] "Møre og Romsdal" | "Møre og Romsdal"       [3]
  [4] "Nordland "       - "Nordland - Nordlánnda" [4]
  [5] "Viken"           | "Viken"                 [5]
  [6] "Viken"           | "Viken"                 [6]
  [7] "Viken"           | "Viken"                 [7]
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 12 ]
  Error: Test failures
  Execution halted