Running 'testthat.R' [13s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(fedregs)
  > 
  > test_check("fedregs")
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 12 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-fedregs.R:138:3'): We can go all the way ─────────────────────
  `cfr_text(na_year, na_title_number, good_chapter, good_part)` threw an error with unexpected message.
  Expected match: "There aren't any regulations for title 1 in 1996.\n"
  Actual message: "Timeout was reached: [www.govinfo.gov] Resolving timed out after 10000 milliseconds"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-fedregs.R:138:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─fedregs::cfr_text(na_year, na_title_number, good_chapter, good_part)
    7.   ├─httr::http_error(url_zip)
    8.   └─httr:::http_error.character(url_zip)
    9.     ├─httr::http_error(HEAD(x, ...))
   10.     └─httr::HEAD(x, ...)
   11.       └─httr:::request_perform(req, hu$handle$handle)
   12.         ├─httr:::request_fetch(req$output, req$url, handle)
   13.         └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   14.           └─curl::curl_fetch_memory(url, handle = handle)
  ── Error ('test-fedregs.R:145:3'): We can go all the way ───────────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: www.govinfo.gov
  Backtrace:
      ▆
   1. └─fedregs::cfr_text(...) at test-fedregs.R:145:2
   2.   ├─httr::http_error(url_zip)
   3.   └─httr:::http_error.character(url_zip)
   4.     ├─httr::http_error(HEAD(x, ...))
   5.     └─httr::HEAD(x, ...)
   6.       └─httr:::request_perform(req, hu$handle$handle)
   7.         ├─httr:::request_fetch(req$output, req$url, handle)
   8.         └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   9.           └─curl::curl_fetch_memory(url, handle = handle)
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 12 ]
  Error: Test failures
  Execution halted