Running ‘testthat.R’ [66s/105s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(ipumsr)
  > 
  > test_check("ipumsr")
  Saving _problems/test_lower_names-45.R
  Saving _problems/test_lower_names-68.R
  Saving _problems/test_lower_names-79.R
  Saving _problems/test_lower_names-90.R
  Saving _problems/test_lower_names-101.R
  Saving _problems/test_lower_names-126.R
  Saving _problems/test_lower_names-160.R
  Saving _problems/test_lower_names-223.R
  Saving _problems/test_lower_names-248.R
  Saving _problems/test_lower_names-297.R
  Saving _problems/test_micro-138.R
  Saving _problems/test_set_var_attributes-5.R
  Saving _problems/test_set_var_attributes-24.R
  [ FAIL 13 | WARN 0 | SKIP 6 | PASS 838 ]
  
  ══ Skipped tests (6) ═══════════════════════════════════════════════════════════
  • On CRAN (6): 'test_api_helpers.R:3:1', 'test_api_helpers.R:23:1',
    'test_micro_chunked.R:24:3', 'test_read_agg.R:7:1', 'test_read_agg.R:372:1',
    'test_shape_read.R:81:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_lower_names.R:45:3'): Reading variables in lowercase is okay - rect micro data ──
  Error in `basename(x)`: path too long
  Backtrace:
      ▆
   1. └─ipumsr::read_ipums_micro(ddi, verbose = FALSE) at test_lower_names.R:45:3
   2.   └─ipumsr:::check_valid_ddi(ddi)
   3.     └─tools::file_ext(ddi)
   4.       ├─base::ifelse(...)
   5.       ├─base::grepl("^(.*[^.]+.*)[.]([[:alnum:]]+)$", basename(x))
   6.       │ └─base::is.factor(x)
   7.       └─base::basename(x)
  ── Error ('test_lower_names.R:68:3'): Reading variables in lowercase is okay - hier micro data ──
  Error in `basename(x)`: path too long
  Backtrace:
      ▆
   1. └─ipumsr::read_ipums_micro_list(ddi, verbose = FALSE) at test_lower_names.R:68:3
   2.   └─ipumsr:::check_valid_ddi(ddi)
   3.     └─tools::file_ext(ddi)
   4.       ├─base::ifelse(...)
   5.       ├─base::grepl("^(.*[^.]+.*)[.]([[:alnum:]]+)$", basename(x))
   6.       │ └─base::is.factor(x)
   7.       └─base::basename(x)
  ── Error ('test_lower_names.R:76:3'): lower_vars = TRUE warning on rectangular .dat.gz ──
  Error in `basename(x)`: path too long
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test_lower_names.R:76:3
    2. │ └─testthat:::expect_condition_matching_(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─ipumsr::read_ipums_micro(ddi, verbose = FALSE, lower_vars = TRUE)
    8.   └─ipumsr:::check_valid_ddi(ddi)
    9.     └─tools::file_ext(ddi)
   10.       ├─base::ifelse(...)
   11.       ├─base::grepl("^(.*[^.]+.*)[.]([[:alnum:]]+)$", basename(x))
   12.       │ └─base::is.factor(x)
   13.       └─base::basename(x)
  ── Error ('test_lower_names.R:87:3'): lower_vars = TRUE warning on hierarchical .dat.gz ──
  Error in `basename(x)`: path too long
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test_lower_names.R:87:3
    2. │ └─testthat:::expect_condition_matching_(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─ipumsr::read_ipums_micro_list(ddi, verbose = FALSE, lower_vars = TRUE)
    8.   └─ipumsr:::check_valid_ddi(ddi)
    9.     └─tools::file_ext(ddi)
   10.       ├─base::ifelse(...)
   11.       ├─base::grepl("^(.*[^.]+.*)[.]([[:alnum:]]+)$", basename(x))
   12.       │ └─base::is.factor(x)
   13.       └─base::basename(x)
  ── Error ('test_lower_names.R:97:3'): lower_vars arg works on .csv.gz file ─────
  Error in `basename(x)`: path too long
  Backtrace:
      ▆
   1. └─ipumsr::read_ipums_micro(...) at test_lower_names.R:97:3
   2.   └─ipumsr:::check_valid_ddi(ddi)
   3.     └─tools::file_ext(ddi)
   4.       ├─base::ifelse(...)
   5.       ├─base::grepl("^(.*[^.]+.*)[.]([[:alnum:]]+)$", basename(x))
   6.       │ └─base::is.factor(x)
   7.       └─base::basename(x)
  ── Error ('test_lower_names.R:118:3'): lower_vars arg works on chunked rectangular .dat.gz ──
  Error in `basename(x)`: path too long
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test_lower_names.R:118:3
    2. │ └─testthat:::expect_condition_matching_(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─ipumsr::read_ipums_micro_chunked(...)
    8.   └─ipumsr:::check_valid_ddi(ddi)
    9.     └─tools::file_ext(ddi)
   10.       ├─base::ifelse(...)
   11.       ├─base::grepl("^(.*[^.]+.*)[.]([[:alnum:]]+)$", basename(x))
   12.       │ └─base::is.factor(x)
   13.       └─base::basename(x)
  ── Error ('test_lower_names.R:152:3'): lower_vars arg works on chunked hierarchical .dat.gz ──
  Error in `basename(x)`: path too long
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test_lower_names.R:152:3
    2. │ └─testthat:::expect_condition_matching_(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─ipumsr::read_ipums_micro_list_chunked(...)
    8.   └─ipumsr:::check_valid_ddi(ddi)
    9.     └─tools::file_ext(ddi)
   10.       ├─base::ifelse(...)
   11.       ├─base::grepl("^(.*[^.]+.*)[.]([[:alnum:]]+)$", basename(x))
   12.       │ └─base::is.factor(x)
   13.       └─base::basename(x)
  ── Error ('test_lower_names.R:218:3'): lower_vars arg works on chunked .csv.gz file ──
  Error in `basename(x)`: path too long
  Backtrace:
      ▆
   1. └─ipumsr::read_ipums_micro_chunked(...) at test_lower_names.R:218:3
   2.   └─ipumsr:::check_valid_ddi(ddi)
   3.     └─tools::file_ext(ddi)
   4.       ├─base::ifelse(...)
   5.       ├─base::grepl("^(.*[^.]+.*)[.]([[:alnum:]]+)$", basename(x))
   6.       │ └─base::is.factor(x)
   7.       └─base::basename(x)
  ── Error ('test_lower_names.R:241:3'): lower_vars arg works with _yield on rectangular .dat.gz ──
  Error in `basename(x)`: path too long
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test_lower_names.R:241:3
    2. │ └─testthat:::expect_condition_matching_(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─ipumsr::read_ipums_micro_yield(ddi, verbose = FALSE, lower_vars = TRUE)
    8.   └─ipumsr:::check_valid_ddi(ddi)
    9.     └─tools::file_ext(ddi)
   10.       ├─base::ifelse(...)
   11.       ├─base::grepl("^(.*[^.]+.*)[.]([[:alnum:]]+)$", basename(x))
   12.       │ └─base::is.factor(x)
   13.       └─base::basename(x)
  ── Error ('test_lower_names.R:290:3'): lower_vars arg works with _yield on hierarchical .dat.gz ──
  Error in `basename(x)`: path too long
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test_lower_names.R:290:3
    2. │ └─testthat:::expect_condition_matching_(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─ipumsr::read_ipums_micro_list_yield(ddi, verbose = FALSE, lower_vars = TRUE)
    8.   └─ipumsr:::check_valid_ddi(ddi)
    9.     └─tools::file_ext(ddi)
   10.       ├─base::ifelse(...)
   11.       ├─base::grepl("^(.*[^.]+.*)[.]([[:alnum:]]+)$", basename(x))
   12.       │ └─base::is.factor(x)
   13.       └─base::basename(x)
  ── Error ('test_micro.R:135:3'): Can read microdata from an `ipums_ddi` object ──
  Error in `basename(x)`: path too long
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test_micro.R:135:3
    2. │ └─testthat:::expect_condition_matching_(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─ipumsr::read_ipums_micro(read_ipums_ddi(ipums_example("cps_00157.xml")))
    8.   └─ipumsr:::check_valid_ddi(ddi)
    9.     └─tools::file_ext(ddi)
   10.       ├─base::ifelse(...)
   11.       ├─base::grepl("^(.*[^.]+.*)[.]([[:alnum:]]+)$", basename(x))
   12.       │ └─base::is.factor(x)
   13.       └─base::basename(x)
  ── Error ('test_set_var_attributes.R:2:3'): can set attributes altogether ──────
  Error in `basename(x)`: path too long
  Backtrace:
      ▆
   1. └─ipumsr::read_ipums_micro(...) at test_set_var_attributes.R:2:3
   2.   └─ipumsr:::check_valid_ddi(ddi)
   3.     └─tools::file_ext(ddi)
   4.       ├─base::ifelse(...)
   5.       ├─base::grepl("^(.*[^.]+.*)[.]([[:alnum:]]+)$", basename(x))
   6.       │ └─base::is.factor(x)
   7.       └─base::basename(x)
  ── Error ('test_set_var_attributes.R:24:3'): setting variable attributes one at a time (#34) ──
  Error in `basename(x)`: path too long
  Backtrace:
      ▆
   1. └─ipumsr::read_ipums_micro(ddi, var_attrs = NULL, verbose = FALSE) at test_set_var_attributes.R:24:3
   2.   └─ipumsr:::check_valid_ddi(ddi)
   3.     └─tools::file_ext(ddi)
   4.       ├─base::ifelse(...)
   5.       ├─base::grepl("^(.*[^.]+.*)[.]([[:alnum:]]+)$", basename(x))
   6.       │ └─base::is.factor(x)
   7.       └─base::basename(x)
  
  [ FAIL 13 | WARN 0 | SKIP 6 | PASS 838 ]
  Error:
  ! Test failures.
  Warning message:
  `check_cassette_names()` was deprecated in vcr 2.0.0. 
  Execution halted