Running ‘testthat.R’ [8s/15s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(norgeo)
  norgeo version 2.1.5
  > 
  > test_check("norgeo")
  Start casting geo codes from API ............
  Data for grunnkrets to bydel in 2010 have 1572 rows
  Data for grunnkrets to kommune in 2010 have 13974 rows
  Data for kommune to fylke in 2010 have 431 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 1 | WARN 0 | SKIP 0 | PASS 13 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-cast-geo.R:4:3'): Cast geo ───────────────────────────────────
  cast_geo(2010) (`actual`) not equal to `dt` (`expected`).
  
  actual vs expected
                                                  name
    actual[12652, ]   Siemens                         
    actual[12653, ]   Bakketun                        
    actual[12654, ]   Sundland                        
  - actual[12655, ]   Nardo nordre                    
  + expected[12655, ] Narbo nordre                    
    actual[12656, ]   Blomsterbyen                    
    actual[12657, ]   Nidarro                         
    actual[12658, ]   Nardo 14                        
  
          actual$name    | expected$name         
  [12652] "Siemens"      | "Siemens"      [12652]
  [12653] "Bakketun"     | "Bakketun"     [12653]
  [12654] "Sundland"     | "Sundland"     [12654]
  [12655] "Nardo nordre" - "Narbo nordre" [12655]
  [12656] "Blomsterbyen" | "Blomsterbyen" [12656]
  [12657] "Nidarro"      | "Nidarro"      [12657]
  [12658] "Nardo 14"     | "Nardo 14"     [12658]
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 13 ]
  Error: Test failures
  Execution halted