Running 'testthat.R' [86s]
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 C:\Users\CRAN\AppData\Local/lehdr/lehdr/Cache/or_od_main_JT01_2014.csv.gz now...
  Could not remove temporary file C:\Users\CRAN\AppData\Local/lehdr/lehdr/Cache/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 C:\Users\CRAN\AppData\Local/lehdr/lehdr/Cache/or_od_main_JT01_2015.csv.gz now...
  Could not remove temporary file C:\Users\CRAN\AppData\Local/lehdr/lehdr/Cache/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 C:\Users\CRAN\AppData\Local/lehdr/lehdr/Cache/or_rac_SA01_JT01_2014.csv.gz now...
  Removed C:\Users\CRAN\AppData\Local/lehdr/lehdr/Cache/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 C:\Users\CRAN\AppData\Local/lehdr/lehdr/Cache/or_rac_SA01_JT01_2015.csv.gz now...
  Removed C:\Users\CRAN\AppData\Local/lehdr/lehdr/Cache/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 C:\Users\CRAN\AppData\Local/lehdr/lehdr/Cache/or_wac_SA01_JT01_2014.csv.gz now...
  Removed C:\Users\CRAN\AppData\Local/lehdr/lehdr/Cache/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 C:\Users\CRAN\AppData\Local/lehdr/lehdr/Cache/or_wac_SA01_JT01_2015.csv.gz now...
  Removed C:\Users\CRAN\AppData\Local/lehdr/lehdr/Cache/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 C:\Users\CRAN\AppData\Local/lehdr/lehdr/Cache/or_od_main_JT01_2013.csv.gz now...
  Downloading https://lehd.ces.census.gov/data/lodes/LODES7/or/wac/or_wac_SA01_JT01_2013.csv.gz to C:\Users\CRAN\AppData\Local/lehdr/lehdr/Cache/or_wac_SA01_JT01_2013.csv.gz now...
  Removed C:\Users\CRAN\AppData\Local/lehdr/lehdr/Cache/or_wac_SA01_JT01_2013.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES7/ri/wac/ri_wac_SA01_JT01_2013.csv.gz to C:\Users\CRAN\AppData\Local/lehdr/lehdr/Cache/ri_wac_SA01_JT01_2013.csv.gz now...
  Removed C:\Users\CRAN\AppData\Local/lehdr/lehdr/Cache/ri_wac_SA01_JT01_2013.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES7/or/wac/or_wac_SA01_JT01_2014.csv.gz to C:\Users\CRAN\AppData\Local/lehdr/lehdr/Cache/or_wac_SA01_JT01_2014.csv.gz now...
  Removed C:\Users\CRAN\AppData\Local/lehdr/lehdr/Cache/or_wac_SA01_JT01_2014.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES7/ri/wac/ri_wac_SA01_JT01_2014.csv.gz to C:\Users\CRAN\AppData\Local/lehdr/lehdr/Cache/ri_wac_SA01_JT01_2014.csv.gz now...
  Removed C:\Users\CRAN\AppData\Local/lehdr/lehdr/Cache/ri_wac_SA01_JT01_2014.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES7/or/wac/or_wac_SA01_JT01_2013.csv.gz to C:\Users\CRAN\AppData\Local/lehdr/lehdr/Cache/or_wac_SA01_JT01_2013.csv.gz now...
  Removed C:\Users\CRAN\AppData\Local/lehdr/lehdr/Cache/or_wac_SA01_JT01_2013.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES7/ri/wac/ri_wac_SA01_JT01_2013.csv.gz to C:\Users\CRAN\AppData\Local/lehdr/lehdr/Cache/ri_wac_SA01_JT01_2013.csv.gz now...
  Removed C:\Users\CRAN\AppData\Local/lehdr/lehdr/Cache/ri_wac_SA01_JT01_2013.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES7/or/wac/or_wac_SA01_JT01_2014.csv.gz to C:\Users\CRAN\AppData\Local/lehdr/lehdr/Cache/or_wac_SA01_JT01_2014.csv.gz now...
  Removed C:\Users\CRAN\AppData\Local/lehdr/lehdr/Cache/or_wac_SA01_JT01_2014.csv.gz.
  Downloading https://lehd.ces.census.gov/data/lodes/LODES7/ri/wac/ri_wac_SA01_JT01_2014.csv.gz to C:\Users\CRAN\AppData\Local/lehdr/lehdr/Cache/ri_wac_SA01_JT01_2014.csv.gz now...
  Removed C:\Users\CRAN\AppData\Local/lehdr/lehdr/Cache/ri_wac_SA01_JT01_2014.csv.gz.
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 8 ]
  
  == Failed tests ================================================================
  -- Error (test-lehdr.R:29:3): test grab lodes od for multiple states and years --
  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: 0x0000000000000183>), 
      raw(0), 131071L)`: error reading from the connection
  Backtrace:
       x
    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 FUN(newX[, i], ...)
    8. |     \-lehdr::grab_lodes(...)
    9. |       +-base::suppressMessages(readr::read_csv(fil, col_types = col_types))
   10. |       | \-base::withCallingHandlers(...)
   11. |       \-readr::read_csv(fil, col_types = col_types)
   12. |         \-vroom::vroom(...)
   13. |           \-vroom:::vroom_(...)
   14. \-base `<fn>`(`<gzfile>`, `<raw>`, 131071L)
  
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 8 ]
  Error: Test failures
  In addition: Warning message:
  In .Internal(readBin(con, what, n, size, signed, swap)) :
    closing unused connection 4 (C:/Users/CRAN/AppData/Local/lehdr/lehdr/Cache/or_od_main_JT01_2013.csv.gz)
  Execution halted