Running ‘testthat.R’ [7s/10s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(prt)
  > 
  > if (requireNamespace("xml2")) {
  +   test_check("prt", reporter = MultiReporter$new(reporters = list(JunitReporter$new(file = "test-results.xml"), CheckReporter$new())))
  + } else {
  +   test_check("prt")
  + }
  Loading required namespace: xml2
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 257 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-format.R:20:3'): print() returns output invisibly ──────────────
  <lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
  Error: `colonnade()` was deprecated in pillar 1.9.0 and is now defunct.
  ℹ Please use `tbl_format_setup()` instead.
  Backtrace:
       ▆
    1. ├─testthat::expect_output(ret <- withVisible(print(prt_cars))) at test-format.R:20:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─testthat::capture_output_lines(code, print, width = width)
    5. │   │   └─testthat:::eval_with_output(code, print = print, width = width)
    6. │   │     ├─withr::with_output_sink(path, withVisible(code))
    7. │   │     │ └─base::force(code)
    8. │   │     └─base::withVisible(code)
    9. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   10. ├─base::withVisible(print(prt_cars))
   11. ├─base::print(prt_cars)
   12. └─prt:::print.prt(prt_cars)
   13.   ├─prt:::cat_line(format(x, ..., n = n, width = width, max_extra_cols = max_extra_cols))
   14.   │ ├─base::trimws(paste0(...), "right")
   15.   │ │ └─base (local) mysub(paste0(whitespace, "+$"), x)
   16.   │ │   └─base::sub(re, "", x, perl = TRUE)
   17.   │ │     └─base::is.factor(x)
   18.   │ └─base::paste0(...)
   19.   ├─base::format(x, ..., n = n, width = width, max_extra_cols = max_extra_cols)
   20.   └─prt:::format.prt(x, ..., n = n, width = width, max_extra_cols = max_extra_cols)
   21.     ├─base::format(trunc_dt(x, n = n, width = width, max_extra_cols = max_extra_cols))
   22.     └─prt::trunc_dt(x, n = n, width = width, max_extra_cols = max_extra_cols)
   23.       └─prt:::shrink_dt(df, rows)
   24.         └─pillar::colonnade(df, has_row_id = FALSE)
   25.           └─lifecycle::deprecate_stop("1.9.0", "pillar::colonnade()", "pillar::tbl_format_setup()")
   26.             └─lifecycle:::deprecate_stop0(msg)
   27.               └─rlang::cnd_signal(...)
  ── Error ('test-format.R:31:3'): trunc_dt output matches known output ──────────
  `{ ... }` threw an unexpected error.
  Message: `colonnade()` was deprecated in pillar 1.9.0 and is now defunct.
  ℹ Please use `tbl_format_setup()` instead.
  Class:   lifecycle_error_deprecated/defunctError/rlang_error/error/condition
  Backtrace:
      ▆
   1. ├─base::print(...)
   2. └─prt::trunc_dt(...)
   3.   └─prt:::shrink_dt(df, rows)
   4.     └─pillar::colonnade(df, has_row_id = FALSE)
   5.       └─lifecycle::deprecate_stop("1.9.0", "pillar::colonnade()", "pillar::tbl_format_setup()")
   6.         └─lifecycle:::deprecate_stop0(msg)
   7.           └─rlang::cnd_signal(...)
  ── Error ('test-format.R:60:3'): trunc_mat for POSIXct columns ─────────────────
  <lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
  Error: `colonnade()` was deprecated in pillar 1.9.0 and is now defunct.
  ℹ Please use `tbl_format_setup()` instead.
  Backtrace:
       ▆
    1. ├─prt:::expect_output_file_opts(...) at test-format.R:60:2
    2. │ ├─withr::with_options(...) at tests/testthat/helper-functions.R:5:2
    3. │ │ └─base::force(code)
    4. │ └─testthat::expect_known_output(x, output_file(filename), update = FALSE)
    5. │   ├─base::append(act, eval_with_output(object, print = print, width = width))
    6. │   └─testthat:::eval_with_output(object, print = print, width = width)
    7. │     ├─withr::with_output_sink(path, withVisible(code))
    8. │     │ └─base::force(code)
    9. │     └─base::withVisible(code)
   10. ├─base::print(create_prt(df, dir = tmp), n = 8L, width = 60L)
   11. └─prt:::print.prt(create_prt(df, dir = tmp), n = 8L, width = 60L)
   12.   ├─prt:::cat_line(format(x, ..., n = n, width = width, max_extra_cols = max_extra_cols))
   13.   │ ├─base::trimws(paste0(...), "right")
   14.   │ │ └─base (local) mysub(paste0(whitespace, "+$"), x)
   15.   │ │   └─base::sub(re, "", x, perl = TRUE)
   16.   │ │     └─base::is.factor(x)
   17.   │ └─base::paste0(...)
   18.   ├─base::format(x, ..., n = n, width = width, max_extra_cols = max_extra_cols)
   19.   └─prt:::format.prt(x, ..., n = n, width = width, max_extra_cols = max_extra_cols)
   20.     ├─base::format(trunc_dt(x, n = n, width = width, max_extra_cols = max_extra_cols))
   21.     └─prt::trunc_dt(x, n = n, width = width, max_extra_cols = max_extra_cols)
   22.       └─prt:::shrink_dt(df, rows)
   23.         └─pillar::colonnade(df, has_row_id = FALSE)
   24.           └─lifecycle::deprecate_stop("1.9.0", "pillar::colonnade()", "pillar::tbl_format_setup()")
   25.             └─lifecycle:::deprecate_stop0(msg)
   26.               └─rlang::cnd_signal(...)
  ── Error ('test-format.R:74:3'): trunc_mat for wide-character columns ──────────
  <lifecycle_error_deprecated/defunctError/rlang_error/error/condition>
  Error: `colonnade()` was deprecated in pillar 1.9.0 and is now defunct.
  ℹ Please use `tbl_format_setup()` instead.
  Backtrace:
       ▆
    1. ├─prt:::expect_output_file_opts(...) at test-format.R:74:2
    2. │ ├─withr::with_options(...) at tests/testthat/helper-functions.R:5:2
    3. │ │ └─base::force(code)
    4. │ └─testthat::expect_known_output(x, output_file(filename), update = FALSE)
    5. │   ├─base::append(act, eval_with_output(object, print = print, width = width))
    6. │   └─testthat:::eval_with_output(object, print = print, width = width)
    7. │     ├─withr::with_output_sink(path, withVisible(code))
    8. │     │ └─base::force(code)
    9. │     └─base::withVisible(code)
   10. ├─base::print(create_prt(df, dir = tmp), n = 8L, width = 60L)
   11. └─prt:::print.prt(create_prt(df, dir = tmp), n = 8L, width = 60L)
   12.   ├─prt:::cat_line(format(x, ..., n = n, width = width, max_extra_cols = max_extra_cols))
   13.   │ ├─base::trimws(paste0(...), "right")
   14.   │ │ └─base (local) mysub(paste0(whitespace, "+$"), x)
   15.   │ │   └─base::sub(re, "", x, perl = TRUE)
   16.   │ │     └─base::is.factor(x)
   17.   │ └─base::paste0(...)
   18.   ├─base::format(x, ..., n = n, width = width, max_extra_cols = max_extra_cols)
   19.   └─prt:::format.prt(x, ..., n = n, width = width, max_extra_cols = max_extra_cols)
   20.     ├─base::format(trunc_dt(x, n = n, width = width, max_extra_cols = max_extra_cols))
   21.     └─prt::trunc_dt(x, n = n, width = width, max_extra_cols = max_extra_cols)
   22.       └─prt:::shrink_dt(df, rows)
   23.         └─pillar::colonnade(df, has_row_id = FALSE)
   24.           └─lifecycle::deprecate_stop("1.9.0", "pillar::colonnade()", "pillar::tbl_format_setup()")
   25.             └─lifecycle:::deprecate_stop0(msg)
   26.               └─rlang::cnd_signal(...)
  
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 257 ]
  Error: Test failures
  Execution halted