Running ‘testthat.R’ [158s/256s]
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_JT00_2014.csv.gz to /data/gannet/ripley/.cache/lehdr/or_od_main_JT00_2014.csv.gz now...
  Removed /data/gannet/ripley/.cache/lehdr/or_od_main_JT00_2014.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES8/or/od/or_od_main_JT00_2020.csv.gz to /data/gannet/ripley/.cache/lehdr/or_od_main_JT00_2020.csv.gz now...
  Removed /data/gannet/ripley/.cache/lehdr/or_od_main_JT00_2020.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES5/or/od/or_od_main_JT00_2009.csv.gz to /data/gannet/ripley/.cache/lehdr/or_od_main_JT00_2009.csv.gz now...
  Downloading https://lehd.ces.census.gov/data/lodes/LODES7/or/rac/or_rac_S000_JT00_2014.csv.gz to /data/gannet/ripley/.cache/lehdr/or_rac_S000_JT00_2014.csv.gz now...
  Downloading https://lehd.ces.census.gov/data/lodes/LODES7/or/wac/or_wac_S000_JT01_2014.csv.gz to /data/gannet/ripley/.cache/lehdr/or_wac_S000_JT01_2014.csv.gz now...
  Removed /data/gannet/ripley/.cache/lehdr/or_wac_S000_JT01_2014.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES5/or/wac/or_wac_S000_JT01_2009.csv.gz to /data/gannet/ripley/.cache/lehdr/or_wac_S000_JT01_2009.csv.gz now...
  Removed /data/gannet/ripley/.cache/lehdr/or_wac_S000_JT01_2009.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES7/or/wac/or_wac_S000_JT00_2015.csv.gz to /data/gannet/ripley/.cache/lehdr/or_wac_S000_JT00_2015.csv.gz now...
  Removed /data/gannet/ripley/.cache/lehdr/or_wac_S000_JT00_2015.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES8/or/wac/or_wac_S000_JT00_2020.csv.gz to /data/gannet/ripley/.cache/lehdr/or_wac_S000_JT00_2020.csv.gz now...
  Removed /data/gannet/ripley/.cache/lehdr/or_wac_S000_JT00_2020.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES7/or/od/or_od_aux_JT01_2013.csv.gz to /data/gannet/ripley/.cache/lehdr/or_od_aux_JT01_2013.csv.gz now...
  Removed /data/gannet/ripley/.cache/lehdr/or_od_aux_JT01_2013.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES7/ri/od/ri_od_aux_JT01_2013.csv.gz to /data/gannet/ripley/.cache/lehdr/ri_od_aux_JT01_2013.csv.gz now...
  Removed /data/gannet/ripley/.cache/lehdr/ri_od_aux_JT01_2013.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES7/or/od/or_od_aux_JT01_2014.csv.gz to /data/gannet/ripley/.cache/lehdr/or_od_aux_JT01_2014.csv.gz now...
  Removed /data/gannet/ripley/.cache/lehdr/or_od_aux_JT01_2014.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES7/ri/od/ri_od_aux_JT01_2014.csv.gz to /data/gannet/ripley/.cache/lehdr/ri_od_aux_JT01_2014.csv.gz now...
  Removed /data/gannet/ripley/.cache/lehdr/ri_od_aux_JT01_2014.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES5/wa/od/wa_od_main_JT01_2007.csv.gz to /data/gannet/ripley/.cache/lehdr/wa_od_main_JT01_2007.csv.gz now...
  Removed /data/gannet/ripley/.cache/lehdr/wa_od_main_JT01_2007.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES5/ri/od/ri_od_main_JT01_2007.csv.gz to /data/gannet/ripley/.cache/lehdr/ri_od_main_JT01_2007.csv.gz now...
  Downloading https://lehd.ces.census.gov/data/lodes/LODES7/or/wac/or_wac_S000_JT00_2013.csv.gz to /data/gannet/ripley/.cache/lehdr/or_wac_S000_JT00_2013.csv.gz now...
  Removed /data/gannet/ripley/.cache/lehdr/or_wac_S000_JT00_2013.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES7/ri/wac/ri_wac_S000_JT00_2013.csv.gz to /data/gannet/ripley/.cache/lehdr/ri_wac_S000_JT00_2013.csv.gz now...
  Removed /data/gannet/ripley/.cache/lehdr/ri_wac_S000_JT00_2013.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES7/or/wac/or_wac_S000_JT00_2014.csv.gz to /data/gannet/ripley/.cache/lehdr/or_wac_S000_JT00_2014.csv.gz now...
  Removed /data/gannet/ripley/.cache/lehdr/or_wac_S000_JT00_2014.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES7/ri/wac/ri_wac_S000_JT00_2014.csv.gz to /data/gannet/ripley/.cache/lehdr/ri_wac_S000_JT00_2014.csv.gz now...
  Removed /data/gannet/ripley/.cache/lehdr/ri_wac_S000_JT00_2014.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES5/or/wac/or_wac_S000_JT00_2007.csv.gz to /data/gannet/ripley/.cache/lehdr/or_wac_S000_JT00_2007.csv.gz now...
  Removed /data/gannet/ripley/.cache/lehdr/or_wac_S000_JT00_2007.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES5/ri/wac/ri_wac_S000_JT00_2007.csv.gz to /data/gannet/ripley/.cache/lehdr/ri_wac_S000_JT00_2007.csv.gz now...
  Removed /data/gannet/ripley/.cache/lehdr/ri_wac_S000_JT00_2007.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES5/or/wac/or_wac_S000_JT00_2009.csv.gz to /data/gannet/ripley/.cache/lehdr/or_wac_S000_JT00_2009.csv.gz now...
  Removed /data/gannet/ripley/.cache/lehdr/or_wac_S000_JT00_2009.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES5/ri/wac/ri_wac_S000_JT00_2009.csv.gz to /data/gannet/ripley/.cache/lehdr/ri_wac_S000_JT00_2009.csv.gz now...
  Removed /data/gannet/ripley/.cache/lehdr/ri_wac_S000_JT00_2009.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES7/or/wac/or_wac_S000_JT00_2013.csv.gz to /data/gannet/ripley/.cache/lehdr/or_wac_S000_JT00_2013.csv.gz now...
  Removed /data/gannet/ripley/.cache/lehdr/or_wac_S000_JT00_2013.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES7/ri/wac/ri_wac_S000_JT00_2013.csv.gz to /data/gannet/ripley/.cache/lehdr/ri_wac_S000_JT00_2013.csv.gz now...
  Removed /data/gannet/ripley/.cache/lehdr/ri_wac_S000_JT00_2013.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES7/or/wac/or_wac_S000_JT00_2014.csv.gz to /data/gannet/ripley/.cache/lehdr/or_wac_S000_JT00_2014.csv.gz now...
  Removed /data/gannet/ripley/.cache/lehdr/or_wac_S000_JT00_2014.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES7/ri/wac/ri_wac_S000_JT00_2014.csv.gz to /data/gannet/ripley/.cache/lehdr/ri_wac_S000_JT00_2014.csv.gz now...
  Removed /data/gannet/ripley/.cache/lehdr/ri_wac_S000_JT00_2014.csv.gz.
  Cached version of file found in /data/gannet/ripley/.cache/lehdr/or_wac_S000_JT01_2017.csv.gz.
  Consider setting use_cache=TRUE to use previously downloaded files.
  Overwriting https://lehd.ces.census.gov/data/lodes/LODES8/or/wac/or_wac_S000_JT01_2017.csv.gz to /data/gannet/ripley/.cache/lehdr/or_wac_S000_JT01_2017.csv.gz now...
  Removed /data/gannet/ripley/.cache/lehdr/or_wac_S000_JT01_2017.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES8/ri/wac/ri_wac_S000_JT01_2017.csv.gz to /data/gannet/ripley/.cache/lehdr/ri_wac_S000_JT01_2017.csv.gz now...
  Removed /data/gannet/ripley/.cache/lehdr/ri_wac_S000_JT01_2017.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES8/or/wac/or_wac_S000_JT01_2018.csv.gz to /data/gannet/ripley/.cache/lehdr/or_wac_S000_JT01_2018.csv.gz now...
  Removed /data/gannet/ripley/.cache/lehdr/or_wac_S000_JT01_2018.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES8/ri/wac/ri_wac_S000_JT01_2018.csv.gz to /data/gannet/ripley/.cache/lehdr/ri_wac_S000_JT01_2018.csv.gz now...
  Removed /data/gannet/ripley/.cache/lehdr/ri_wac_S000_JT01_2018.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES8/or/wac/or_wac_S000_JT01_2019.csv.gz to /data/gannet/ripley/.cache/lehdr/or_wac_S000_JT01_2019.csv.gz now...
  Removed /data/gannet/ripley/.cache/lehdr/or_wac_S000_JT01_2019.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES8/ri/wac/ri_wac_S000_JT01_2019.csv.gz to /data/gannet/ripley/.cache/lehdr/ri_wac_S000_JT01_2019.csv.gz now...
  Removed /data/gannet/ripley/.cache/lehdr/ri_wac_S000_JT01_2019.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES8/or/wac/or_wac_S000_JT01_2020.csv.gz to /data/gannet/ripley/.cache/lehdr/or_wac_S000_JT01_2020.csv.gz now...
  Removed /data/gannet/ripley/.cache/lehdr/or_wac_S000_JT01_2020.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES8/ri/wac/ri_wac_S000_JT01_2020.csv.gz to /data/gannet/ripley/.cache/lehdr/ri_wac_S000_JT01_2020.csv.gz now...
  Removed /data/gannet/ripley/.cache/lehdr/ri_wac_S000_JT01_2020.csv.gz.
  [ FAIL 3 | WARN 1 | SKIP 0 | PASS 11 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-lehdr.R:18:3'): test grab lodes od ─────────────────────────────
  Error in `curl::curl_fetch_disk(url, x$path, handle = handle)`: Failed to open file /data/gannet/ripley/.cache/lehdr/or_od_main_JT00_2009.csv.gz.
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-lehdr.R:18: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.   └─httr::GET(url, httr::write_disk(fil, overwrite = TRUE))
    7.     └─httr:::request_perform(req, hu$handle$handle)
    8.       ├─httr:::request_fetch(req$output, req$url, handle)
    9.       └─httr:::request_fetch.write_disk(req$output, req$url, handle)
   10.         └─curl::curl_fetch_disk(url, x$path, handle = handle)
  ── Error ('test-lehdr.R:50:3'): test grab lodes rac ────────────────────────────
  Error in `(function (con, what, n = 1L, size = NA_integer_, signed = TRUE, 
      endian = .Platform$endian) 
  {
      if (!endian %in% c("big", "little", "swap")) 
          stop("invalid 'endian' argument")
      if (is.character(con)) {
          con <- file(con, "rb")
          on.exit(close(con))
      }
      swap <- endian != .Platform$endian
      if (!is.character(what) || is.na(what) || length(what) != 
          1L || !any(what == c("numeric", "double", "integer", 
          "int", "logical", "complex", "character", "raw"))) 
          what <- typeof(what)
      .Internal(readBin(con, what, n, size, signed, swap))
  })(structure(4L, class = c("gzfile", "connection"), conn_id = <pointer: 0x16c>), 
      raw(0), 131071L)`: error reading from the connection
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-lehdr.R:50: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::suppressMessages(readr::read_csv(fil, col_types = col_types))
    7. │ │ └─base::withCallingHandlers(...)
    8. │ └─readr::read_csv(fil, col_types = col_types)
    9. │   └─vroom::vroom(...)
   10. │     └─vroom:::vroom_(...)
   11. └─base (local) `<fn>`(`<gzfile>`, `<raw>`, 131071L)
  ── Error ('test-lehdr.R:113:3'): test grab lodes od for multiple states and years ──
  Error in `curl::curl_fetch_disk(url, x$path, handle = handle)`: Failed to open file /data/gannet/ripley/.cache/lehdr/ri_od_main_JT01_2007.csv.gz.
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-lehdr.R:113: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::GET(url, httr::write_disk(fil, overwrite = TRUE))
   10.           └─httr:::request_perform(req, hu$handle$handle)
   11.             ├─httr:::request_fetch(req$output, req$url, handle)
   12.             └─httr:::request_fetch.write_disk(req$output, req$url, handle)
   13.               └─curl::curl_fetch_disk(url, x$path, handle = handle)
  
  [ FAIL 3 | WARN 1 | SKIP 0 | PASS 11 ]
  Error: Test failures
  In addition: Warning message:
  closing unused connection 4 (/data/gannet/ripley/.cache/lehdr/or_rac_S000_JT00_2014.csv.gz) 
  Execution halted