Running 'testthat.R' [15s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(pmetar)
  > 
  > test_check("pmetar")
  -- 1. Error: Check cloud coverage output (@test_metar_cloud_coverage.R#16)  ----
  no applicable method for 'type' applied to an object of class "factor"
  Backtrace:
   1. testthat::expect_equal(...)
   4. pmetar::metar_cloud_coverage("EPWA 281830Z 18009KT 140V200 9999 SCT037 03/M01 Q1008 NOSIG")
   5. stringr::str_detect(x, pattern = lp_dt$pattern_text[i])
   6. stringr:::type(pattern)
  
  -- 2. Error: Incorrect METAR reports (@test_metar_cloud_coverage.R#37)  --------
  no applicable method for 'type' applied to an object of class "factor"
  Backtrace:
   1. testthat::expect_equal(metar_cloud_coverage(x8), "")
   4. pmetar::metar_cloud_coverage(x8)
   5. stringr::str_detect(x, pattern = lp_dt$pattern_text[i])
   6. stringr:::type(pattern)
  
  -- 3. Error: Correct and incorrect METAR reports (@test_metar_cloud_coverage.R#4
  no applicable method for 'type' applied to an object of class "factor"
  Backtrace:
   1. testthat::expect_is(metar_cloud_coverage(dx$metar), "character")
   4. pmetar::metar_cloud_coverage(dx$metar)
   5. stringr::str_detect(x, pattern = lp_dt$pattern_text[i])
   6. stringr:::type(pattern)
  
  -- 4. Failure: Check WX codes (@test_metar_wx_codes.R#21)  ---------------------
  metar_wx_codes(x3) not equal to "Light intensity: Rain; Light intensity: Ice Pellets; Mist (French: Brume)".
  1/1 mismatches
  x[1]: "Light intensity: Rain; Light intensity: Ice Pellets; NA Mist (French: Bru
  x[1]: me)"
  y[1]: "Light intensity: Rain; Light intensity: Ice Pellets; Mist (French: Brume)
  y[1]: "
  
  -- 5. Failure: Check WX codes (@test_metar_wx_codes.R#22)  ---------------------
  metar_wx_codes(x4) not equal to "Mist (French: Brume)".
  1/1 mismatches
  x[1]: "NA Mist (French: Brume)"
  y[1]: "Mist (French: Brume)"
  
  -- 6. Failure: Check WX codes (@test_metar_wx_codes.R#23)  ---------------------
  metar_wx_codes(x5) not equal to "Light intensity: Rain; Mist (French: Brume)".
  1/1 mismatches
  x[1]: "Light intensity: Rain; NA Mist (French: Brume)"
  y[1]: "Light intensity: Rain; Mist (French: Brume)"
  
  -- 7. Failure: Check WX codes (@test_metar_wx_codes.R#24)  ---------------------
  metar_wx_codes(x6) not equal to "Light intensity: Snow; Blowing, Snow; Recent: Freezing, Rain".
  1/1 mismatches
  x[1]: "Light intensity: Snow; NA Blowing, Snow; Recent: Freezing, Rain"
  y[1]: "Light intensity: Snow; Blowing, Snow; Recent: Freezing, Rain"
  
  -- 8. Failure: Check WX codes (@test_metar_wx_codes.R#27)  ---------------------
  metar_wx_codes(x9) not equal to "Light intensity: Rain; Light intensity: Snow; Mist (French: Brume)".
  1/1 mismatches
  x[1]: "Light intensity: Rain; Light intensity: Snow; NA Mist (French: Brume)"
  y[1]: "Light intensity: Rain; Light intensity: Snow; Mist (French: Brume)"
  
  -- 9. Failure: Check WX codes (@test_metar_wx_codes.R#29)  ---------------------
  metar_wx_codes(x) not equal to c(...).
  8/10 mismatches
  x[3]: "NA Rain; NA Ice Pellets; 1 Mist (French: Brume)"
  y[3]: "Light intensity: Rain; Light intensity: Ice Pellets; Mist (French: Brume)
  y[3]: "
  
  x[4]: "NA Mist (French: Brume); 1 ; 1"
  y[4]: "Mist (French: Brume)"
  
  x[5]: "NA Rain; 1 Mist (French: Brume); 1"
  y[5]: "Light intensity: Rain; Mist (French: Brume)"
  
  x[6]: "NA Snow; 1 Blowing, Snow; NA Freezing, Rain"
  y[6]: "Light intensity: Snow; Blowing, Snow; Recent: Freezing, Rain"
  
  x[7]: "NA Rain; 1 ; 1"
  y[7]: "Light intensity: Rain"
  
  -- 10. Failure: Check WX codes (@test_metar_wx_codes.R#38)  --------------------
  metar_wx_codes(dx$metar) not equal to c(...).
  8/10 mismatches
  x[3]: "NA Rain; NA Ice Pellets; 1 Mist (French: Brume)"
  y[3]: "Light intensity: Rain; Light intensity: Ice Pellets; Mist (French: Brume)
  y[3]: "
  
  x[4]: "NA Mist (French: Brume); 1 ; 1"
  y[4]: "Mist (French: Brume)"
  
  x[5]: "NA Rain; 1 Mist (French: Brume); 1"
  y[5]: "Light intensity: Rain; Mist (French: Brume)"
  
  x[6]: "NA Snow; 1 Blowing, Snow; NA Freezing, Rain"
  y[6]: "Light intensity: Snow; Blowing, Snow; Recent: Freezing, Rain"
  
  x[7]: "NA Rain; 1 ; 1"
  y[7]: "Light intensity: Rain"
  
  -- 11. Failure: Correct and incorrect METAR reports (@test_metar_wx_codes.R#64) 
  metar_wx_codes(dx$metar) not equal to c(...).
  8/13 mismatches
  x[3]: "NA Rain; NA Ice Pellets; 1 Mist (French: Brume)"
  y[3]: "Light intensity: Rain; Light intensity: Ice Pellets; Mist (French: Brume)
  y[3]: "
  
  x[4]: "NA Mist (French: Brume); 1 ; 1"
  y[4]: "Mist (French: Brume)"
  
  x[5]: "NA Rain; 1 Mist (French: Brume); 1"
  y[5]: "Light intensity: Rain; Mist (French: Brume)"
  
  x[6]: "NA Snow; 1 Blowing, Snow; NA Freezing, Rain"
  y[6]: "Light intensity: Snow; Blowing, Snow; Recent: Freezing, Rain"
  
  x[7]: "NA Rain; 1 ; 1"
  y[7]: "Light intensity: Rain"
  
  == testthat results  ===========================================================
  [ OK: 364 | SKIPPED: 0 | WARNINGS: 31 | FAILED: 11 ]
  1. Error: Check cloud coverage output (@test_metar_cloud_coverage.R#16) 
  2. Error: Incorrect METAR reports (@test_metar_cloud_coverage.R#37) 
  3. Error: Correct and incorrect METAR reports (@test_metar_cloud_coverage.R#46) 
  4. Failure: Check WX codes (@test_metar_wx_codes.R#21) 
  5. Failure: Check WX codes (@test_metar_wx_codes.R#22) 
  6. Failure: Check WX codes (@test_metar_wx_codes.R#23) 
  7. Failure: Check WX codes (@test_metar_wx_codes.R#24) 
  8. Failure: Check WX codes (@test_metar_wx_codes.R#27) 
  9. Failure: Check WX codes (@test_metar_wx_codes.R#29) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted