Running ‘testthat.R’ [8s/22s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(norgeo)
  norgeo version 2.1.2
  > 
  > 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'): Cast geo ─────────────────────────────────────
  cast_geo(2020) (`actual`) not equal to `dt` (`expected`).
  
  actual vs expected
                                                                               name
    actual[1900, ]    Nordsida - Randabygd                                         
    actual[1901, ]    Uoppgitt delområde                                           
    actual[1902, ]    Trøndelag - Trööndelage                                      
  - actual[1903, ]    Trondheim                                                    
  + expected[1903, ]  Trondheim - Tråanten                                         
    actual[1904, ]    Midtbyen                                                     
    actual[1905, ]    Klæbu                                                        
    actual[1906, ]    Østbyen                                                      
  
  actual vs expected
                                                                               name
    actual[1971, ]    Øvre Rennebu                                                 
    actual[1972, ]    Nedre Rennebu                                                
    actual[1973, ]    Uoppgitt delområde                                           
  - actual[1974, ]    Røros                                                        
  + expected[1974, ]  Røros - Rossen                                               
    actual[1975, ]    Røros                                                        
    actual[1976, ]    Brekken - Glåmos                                             
    actual[1977, ]    Uoppgitt delområde                                           
  
         actual$name               | expected$name                   
  [1900] "Nordsida - Randabygd"    | "Nordsida - Randabygd"    [1900]
  [1901] "Uoppgitt delområde"      | "Uoppgitt delområde"      [1901]
  [1902] "Trøndelag - Trööndelage" | "Trøndelag - Trööndelage" [1902]
  [1903] "Trondheim"               - "Trondheim - Tråanten"    [1903]
  [1904] "Midtbyen"                | "Midtbyen"                [1904]
  [1905] "Klæbu"                   | "Klæbu"                   [1905]
  [1906] "Østbyen"                 | "Østbyen"                 [1906]
  
         actual$name          | expected$name              
  [1971] "Øvre Rennebu"       | "Øvre Rennebu"       [1971]
  [1972] "Nedre Rennebu"      | "Nedre Rennebu"      [1972]
  [1973] "Uoppgitt delområde" | "Uoppgitt delområde" [1973]
  [1974] "Røros"              - "Røros - Rossen"     [1974]
  [1975] "Røros"              | "Røros"              [1975]
  [1976] "Brekken - Glåmos"   | "Brekken - Glåmos"   [1976]
  [1977] "Uoppgitt delområde" | "Uoppgitt delområde" [1977]
  ── Failure ('test-track-change.R:6'): Track change ─────────────────────────────
  track_change("kommune", 2017, 2020) (`actual`) not equal to `dtKomm` (`expected`).
  
  actual vs expected
                                               newName
    actual[333, ]   Stad                              
    actual[334, ]   Gloppen                           
    actual[335, ]   Stryn                             
  - actual[336, ]   Trondheim                         
  + expected[336, ] Trondheim - Tråanten              
    actual[337, ]   Trondheim                         
  - actual[338, ]   Trondheim                         
  + expected[338, ] Trondheim - Tråanten              
    actual[339, ]   Steinkjer                         
    actual[340, ]   Steinkjer                         
    actual[341, ]   Steinkjer                         
  
  actual vs expected
                                               newName
    actual[354, ]   Oppdal                            
    actual[355, ]   Rennebu                           
    actual[356, ]   Rennebu                           
  - actual[357, ]   Røros                             
  + expected[357, ] Røros - Rossen                    
  - actual[358, ]   Røros                             
  + expected[358, ] Røros - Rossen                    
    actual[359, ]   Holtålen                          
    actual[360, ]   Holtålen                          
    actual[361, ]   Midtre Gauldal                    
  
        actual$newName | expected$newName            
  [333] "Stad"         | "Stad"                 [333]
  [334] "Gloppen"      | "Gloppen"              [334]
  [335] "Stryn"        | "Stryn"                [335]
  [336] "Trondheim"    - "Trondheim - Tråanten" [336]
  [337] "Trondheim"    | "Trondheim"            [337]
  [338] "Trondheim"    - "Trondheim - Tråanten" [338]
  [339] "Steinkjer"    | "Steinkjer"            [339]
  [340] "Steinkjer"    | "Steinkjer"            [340]
  [341] "Steinkjer"    | "Steinkjer"            [341]
  
        actual$newName   | expected$newName      
  [354] "Oppdal"         | "Oppdal"         [354]
  [355] "Rennebu"        | "Rennebu"        [355]
  [356] "Rennebu"        | "Rennebu"        [356]
  [357] "Røros"          - "Røros - Rossen" [357]
  [358] "Røros"          - "Røros - Rossen" [358]
  [359] "Holtålen"       | "Holtålen"       [359]
  [360] "Holtålen"       | "Holtålen"       [360]
  [361] "Midtre Gauldal" | "Midtre Gauldal" [361]
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 12 ]
  Error: Test failures
  Execution halted