Running ‘testthat.R’ [44s/141s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(lehdr)
  > library(dplyr)
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  > 
  > test_check("lehdr")
  Downloading https://lehd.ces.census.gov/data/lodes/LODES7/or/od/or_od_main_JT01_2014.csv.gz to /tmp/check-CRAN-regular-hornik/cache/lehdr/or_od_main_JT01_2014.csv.gz now...
  Removed /tmp/check-CRAN-regular-hornik/cache/lehdr/or_od_main_JT01_2014.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES7/or/od/or_od_main_JT01_2015.csv.gz to /tmp/check-CRAN-regular-hornik/cache/lehdr/or_od_main_JT01_2015.csv.gz now...
  Removed /tmp/check-CRAN-regular-hornik/cache/lehdr/or_od_main_JT01_2015.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES7/or/rac/or_rac_SA01_JT01_2014.csv.gz to /tmp/check-CRAN-regular-hornik/cache/lehdr/or_rac_SA01_JT01_2014.csv.gz now...
  Removed /tmp/check-CRAN-regular-hornik/cache/lehdr/or_rac_SA01_JT01_2014.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES7/or/rac/or_rac_SA01_JT01_2015.csv.gz to /tmp/check-CRAN-regular-hornik/cache/lehdr/or_rac_SA01_JT01_2015.csv.gz now...
  Removed /tmp/check-CRAN-regular-hornik/cache/lehdr/or_rac_SA01_JT01_2015.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES7/or/wac/or_wac_SA01_JT01_2014.csv.gz to /tmp/check-CRAN-regular-hornik/cache/lehdr/or_wac_SA01_JT01_2014.csv.gz now...
  Removed /tmp/check-CRAN-regular-hornik/cache/lehdr/or_wac_SA01_JT01_2014.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES7/or/wac/or_wac_SA01_JT01_2015.csv.gz to /tmp/check-CRAN-regular-hornik/cache/lehdr/or_wac_SA01_JT01_2015.csv.gz now...
  Removed /tmp/check-CRAN-regular-hornik/cache/lehdr/or_wac_SA01_JT01_2015.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES7/or/od/or_od_main_JT01_2013.csv.gz to /tmp/check-CRAN-regular-hornik/cache/lehdr/or_od_main_JT01_2013.csv.gz now...
  Removed /tmp/check-CRAN-regular-hornik/cache/lehdr/or_od_main_JT01_2013.csv.gz.
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 6 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-lehdr.R:29:3): test grab lodes od for multiple states and years ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [lehd.ces.census.gov] Failed to connect to lehd.ces.census.gov port 443 after 5202 ms: Connection timed out
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-lehdr.R:29:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─... %>% dim
    5. └─lehdr::grab_lodes(...)
    6.   └─base::apply(...)
    7.     └─lehdr (local) FUN(newX[, i], ...)
    8.       └─lehdr::grab_lodes(...)
    9.         ├─httr::stop_for_status(...)
   10.         │ └─httr::status_code(x)
   11.         └─httr::HEAD(url)
   12.           └─httr:::request_perform(req, hu$handle$handle)
   13.             ├─httr:::request_fetch(req$output, req$url, handle)
   14.             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   15.               └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-lehdr.R:38:3): test grab lodes wac for multiple states and years ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [lehd.ces.census.gov] Failed to connect to lehd.ces.census.gov port 443 after 5211 ms: Connection timed out
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-lehdr.R:38:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─... %>% dim
    5. └─lehdr::grab_lodes(...)
    6.   └─base::apply(...)
    7.     └─lehdr (local) FUN(newX[, i], ...)
    8.       └─lehdr::grab_lodes(...)
    9.         ├─httr::stop_for_status(...)
   10.         │ └─httr::status_code(x)
   11.         └─httr::HEAD(url)
   12.           └─httr:::request_perform(req, hu$handle$handle)
   13.             ├─httr:::request_fetch(req$output, req$url, handle)
   14.             └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   15.               └─curl::curl_fetch_memory(url, handle = handle)
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 6 ]
  Error: Test failures
  Execution halted