Running ‘testthat.R’ [8s/40s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(FedData)
  Loading required package: sp
  > 
  > test_check("FedData")
  ── 1. Error: The GHCN inventory is available at the correct URL (@test.GHCN.R#6)
  Timeout was reached: Connection timed out after 10000 milliseconds
  1: expect_false(suppressWarnings(httr::http_error("ftp://ftp.ncdc.noaa.gov/pub/data/ghcn/daily/ghcnd-inventory.txt"))) at testthat/test.GHCN.R:6
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: suppressWarnings(httr::http_error("ftp://ftp.ncdc.noaa.gov/pub/data/ghcn/daily/ghcnd-inventory.txt"))
  5: withCallingHandlers(expr, warning = function(w) invokeRestart("muffleWarning"))
  6: httr::http_error("ftp://ftp.ncdc.noaa.gov/pub/data/ghcn/daily/ghcnd-inventory.txt")
  7: http_error.character("ftp://ftp.ncdc.noaa.gov/pub/data/ghcn/daily/ghcnd-inventory.txt")
  8: http_error(HEAD(x, ...))
  9: HEAD(x, ...)
  10: request_perform(req, hu$handle$handle)
  11: request_fetch(req$output, req$url, handle)
  12: request_fetch.write_memory(req$output, req$url, handle)
  13: curl::curl_fetch_memory(url, handle = handle)
  
  ── 2. Error: The GHCN daily weather stations are available at the correct URL (@
  Timeout was reached: Connection timed out after 10001 milliseconds
  1: expect_false(suppressWarnings(httr::http_error("ftp://ftp.ncdc.noaa.gov/pub/data/ghcn/daily/all/USC00051886.dly"))) at testthat/test.GHCN.R:11
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: suppressWarnings(httr::http_error("ftp://ftp.ncdc.noaa.gov/pub/data/ghcn/daily/all/USC00051886.dly"))
  5: withCallingHandlers(expr, warning = function(w) invokeRestart("muffleWarning"))
  6: httr::http_error("ftp://ftp.ncdc.noaa.gov/pub/data/ghcn/daily/all/USC00051886.dly")
  7: http_error.character("ftp://ftp.ncdc.noaa.gov/pub/data/ghcn/daily/all/USC00051886.dly")
  8: http_error(HEAD(x, ...))
  9: HEAD(x, ...)
  10: request_perform(req, hu$handle$handle)
  11: request_fetch(req$output, req$url, handle)
  12: request_fetch.write_memory(req$output, req$url, handle)
  13: curl::curl_fetch_memory(url, handle = handle)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 22 SKIPPED: 1 FAILED: 2
  1. Error: The GHCN inventory is available at the correct URL (@test.GHCN.R#6) 
  2. Error: The GHCN daily weather stations are available at the correct URL (@test.GHCN.R#11) 
  
  Error: testthat unit tests failed
  Execution halted