Running ‘testthat.R’ [6s/245s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rsoi)
  > 
  > test_check("rsoi")
  ── 1. Error: Does download_oni download a data.frame? (@test_download_.R#12)  ──
  Timeout was reached: [www.ncdc.noaa.gov] Connection timed out after 10004 milliseconds
  Backtrace:
   1. rsoi:::skip_if_shutdown()
   2. curl::curl_fetch_memory("https://www.ncdc.noaa.gov/teleconnections/nao/data.csv") /home/ripley/R/packages/tests32/rsoi.Rcheck/tests/helper.R:12:2
  
  ── 2. Error: Does download_mei download a data.frame? (@test_download_.R#13)  ──
  Timeout was reached: [www.esrl.noaa.gov] Operation timed out after 10000 milliseconds with 0 out of 0 bytes received
  Backtrace:
   1. testthat::expect_is(fun(), "data.frame")
   4. rsoi:::fun()
   5. rsoi:::with_cache(...)
   6. rsoi:::unmemoised(...)
   7. rsoi:::check_response(mei_link)
   8. curl::curl_fetch_memory(link)
  
  ── 3. Error: Does download_pdo download a data.frame? (@test_download_.R#13)  ──
  Non successful http request. Target server returning a 503 error code
  Backtrace:
   1. testthat::expect_is(fun(), "data.frame")
   4. rsoi:::fun()
   5. rsoi:::with_cache(...)
   6. rsoi:::unmemoised(...)
   7. rsoi:::check_response(pdo_link)
  
  ── 4. Error: read_pdo recovers data (@test_download_.R#34)  ────────────────────
  Non successful http request. Target server returning a 502 error code
  Backtrace:
   1. rsoi:::download_fun(use_cache = FALSE, file = file)
   2. rsoi:::with_cache(...)
   3. rsoi:::unmemoised(...)
   4. rsoi:::check_response(pdo_link)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 23 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 4 ]
  1. Error: Does download_oni download a data.frame? (@test_download_.R#12) 
  2. Error: Does download_mei download a data.frame? (@test_download_.R#13) 
  3. Error: Does download_pdo download a data.frame? (@test_download_.R#13) 
  4. Error: read_pdo recovers data (@test_download_.R#34) 
  
  Error: testthat unit tests failed
  Execution halted