Running 'testthat.R' [8s]
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 1 | WARN 0 | SKIP 4 | PASS 251 ]
  
  == Skipped tests ===============================================================
  * Non-UTF-8 locale (2)
  * On Windows (2)
  
  == 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.
  i Please use `tbl_format_setup()` instead.
  Backtrace:
       x
    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(...)
  
  [ FAIL 1 | WARN 0 | SKIP 4 | PASS 251 ]
  Error: Test failures
  Execution halted