Running ‘testthat.R’ [19s/135s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library('testthat')
  > library('rdefra')
  > 
  > test_check('rdefra')
  1. Error: Up-to-date metadata catalogue should have at least 6569 stations. (@test-metadata.R#37) 
  CCTZ: Unrecognized output timezone: "Europe/London"
  1: ukair_catalogue() at testthat/test-metadata.R:37
  2: suppressWarnings(df$Start.Date <- lubridate::ymd(df$Start.Date, tz = "Europe/London"))
  3: withCallingHandlers(expr, warning = function(w) invokeRestart("muffleWarning"))
  4: lubridate::ymd(df$Start.Date, tz = "Europe/London")
  5: .parse_xxx(..., orders = "ymd", quiet = quiet, tz = tz, locale = locale, truncated = truncated)
  6: parse_date_time(dates, orders, quiet = quiet, tz = tz, locale = locale, truncated = truncated)
  7: .local_parse(x[to_parse], TRUE)
  8: .parse_date_time(x, formats, tz = tz, quiet = quiet, locale = locale)
  9: .strptime(x, formats[[1]], tz = tz, quiet = quiet, locale = locale)
  10: force_tz(out, tzone = tz)
  11: C_force_tz(time, tz = tzone, roll)
  
  2. Error: Infill missing coordinates from data frame. (@test-metadata.R#108) ---
  CCTZ: Unrecognized output timezone: "Europe/London"
  1: ukair_catalogue() at testthat/test-metadata.R:108
  2: suppressWarnings(df$Start.Date <- lubridate::ymd(df$Start.Date, tz = "Europe/London"))
  3: withCallingHandlers(expr, warning = function(w) invokeRestart("muffleWarning"))
  4: lubridate::ymd(df$Start.Date, tz = "Europe/London")
  5: .parse_xxx(..., orders = "ymd", quiet = quiet, tz = tz, locale = locale, truncated = truncated)
  6: parse_date_time(dates, orders, quiet = quiet, tz = tz, locale = locale, truncated = truncated)
  7: .local_parse(x[to_parse], TRUE)
  8: .parse_date_time(x, formats, tz = tz, quiet = quiet, locale = locale)
  9: .strptime(x, formats[[1]], tz = tz, quiet = quiet, locale = locale)
  10: force_tz(out, tzone = tz)
  11: C_force_tz(time, tz = tzone, roll)
  
  testthat results ================================================================
  OK: 18 SKIPPED: 1 FAILED: 2
  1. Error: Up-to-date metadata catalogue should have at least 6569 stations. (@test-metadata.R#37) 
  2. Error: Infill missing coordinates from data frame. (@test-metadata.R#108) 
  
  Error: testthat unit tests failed
  Execution halted