Running ‘testthat.R’ [4s/26s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(GSODR)
  > 
  > test_check("GSODR")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● On CRAN (9)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-get_GSOD.R:126:3): The 'max_missing' parameter filters out improper stations ──
  `get_GSOD(years = 1929, max_missing = 1)` threw an error with unexpected message.
  Expected match: "There were no stations that had a max of."
  Actual message: "\nThe file downloads have failed. Please restart.\n"
  Backtrace:
       █
    1. ├─testthat::expect_error(...) test-get_GSOD.R:126:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─GSODR::get_GSOD(years = 1929, max_missing = 1)
    7.   └─GSODR:::.download_files(station, years)
    8.     └─base::tryCatch(...)
    9.       └─base:::tryCatchList(expr, classes, parentenv, handlers)
   10.         └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   11.           └─value[[3L]](cond)
  ── Error (test-get_GSOD.R:244:11): when year is selected for a station not providing it, error ──
  Error: 
  The file downloads have failed. Please restart.
  
  Backtrace:
       █
    1. ├─testthat::expect_message(...) test-get_GSOD.R:244:10
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─GSODR::get_GSOD(years = 1950, station = "959360-99999")
    7.   └─GSODR:::.download_files(station, years)
    8.     └─base::tryCatch(...)
    9.       └─base:::tryCatchList(expr, classes, parentenv, handlers)
   10.         └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   11.           └─value[[3L]](cond)
  
  [ FAIL 2 | WARN 0 | SKIP 9 | PASS 31 ]
  Error: Test failures
  Execution halted