Running ‘testthat.R’ [273s/304s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard testthat setup
  > library(testthat)
  > library(sumExtras)
  > 
  > test_check("sumExtras")
  Saving _problems/test-extras-173.R
  Saving _problems/test-labels-196.R
  Saving _problems/test-labels-224.R
  [ FAIL 3 | WARN 2 | SKIP 0 | PASS 236 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-extras.R:168:3'): extras() works with tbl_svysummary ───────────
  Error in `gtsummary::tbl_svysummary(svy_design, by = trt, include = c(age, grade))`: The following columns are not present: "warning" and "error".
  Backtrace:
       ▆
    1. ├─sumExtras::extras(...) at test-extras.R:168:3
    2. └─gtsummary::tbl_svysummary(svy_design, by = trt, include = c(age, grade))
    3.   ├─cards::replace_null_statistic(...)
    4.   │ └─cards:::check_class(x, "card")
    5.   ├─cards::bind_ard(...)
    6.   │ └─dplyr::bind_rows(...)
    7.   │   └─rlang::list2(...)
    8.   ├─cardx::ard_total_n(data)
    9.   └─cardx:::ard_total_n.survey.design(data)
   10.     ├─dplyr::select(...)
   11.     ├─dplyr::mutate(...)
   12.     ├─cards::ard_tabulate_value(...)
   13.     └─cardx:::ard_tabulate_value.survey.design(...)
   14.       ├─dplyr::mutate(...)
   15.       ├─dplyr::filter(...)
   16.       ├─cards::ard_tabulate(...)
   17.       └─cardx:::ard_tabulate.survey.design(...)
   18.         ├─cards::tidy_ard_row_order(...)
   19.         │ └─dplyr::select(x, all_ard_groups(c("names", "levels")))
   20.         ├─cards::tidy_ard_column_order(...)
   21.         │ ├─dplyr::pull(...)
   22.         │ ├─dplyr::arrange(...)
   23.         │ ├─base::data.frame(colname = names(dplyr::select(x, all_ard_groups())))
   24.         │ └─dplyr::select(x, all_ard_groups())
   25.         ├─cards::as_card(...)
   26.         │ └─cards:::check_class(x, cls = "data.frame")
   27.         ├─dplyr::mutate(...)
   28.         └─cardx:::.restore_original_column_types(cards, data = data$variables)
   29.           └─cards::as_card(...)
   30.             └─cards::check_ard_structure(...)
   31.               └─cards:::.message_or_error(...)
   32.                 └─cli::cli_abort(msg, call = call, .envir = envir)
   33.                   └─rlang::abort(...)
  ── Error ('test-labels.R:194:3'): add_auto_labels() works with tbl_svysummary ──
  Error in `gtsummary::tbl_svysummary(svy_trial, include = age)`: The following columns are not present: "warning" and "error".
  Backtrace:
       ▆
    1. ├─sumExtras::add_auto_labels(...) at test-labels.R:194:3
    2. └─gtsummary::tbl_svysummary(svy_trial, include = age)
    3.   ├─cards::replace_null_statistic(...)
    4.   │ └─cards:::check_class(x, "card")
    5.   ├─cards::bind_ard(...)
    6.   │ └─dplyr::bind_rows(...)
    7.   │   └─rlang::list2(...)
    8.   ├─cardx::ard_total_n(data)
    9.   └─cardx:::ard_total_n.survey.design(data)
   10.     ├─dplyr::select(...)
   11.     ├─dplyr::mutate(...)
   12.     ├─cards::ard_tabulate_value(...)
   13.     └─cardx:::ard_tabulate_value.survey.design(...)
   14.       ├─dplyr::mutate(...)
   15.       ├─dplyr::filter(...)
   16.       ├─cards::ard_tabulate(...)
   17.       └─cardx:::ard_tabulate.survey.design(...)
   18.         ├─cards::tidy_ard_row_order(...)
   19.         │ └─dplyr::select(x, all_ard_groups(c("names", "levels")))
   20.         ├─cards::tidy_ard_column_order(...)
   21.         │ ├─dplyr::pull(...)
   22.         │ ├─dplyr::arrange(...)
   23.         │ ├─base::data.frame(colname = names(dplyr::select(x, all_ard_groups())))
   24.         │ └─dplyr::select(x, all_ard_groups())
   25.         ├─cards::as_card(...)
   26.         │ └─cards:::check_class(x, cls = "data.frame")
   27.         ├─dplyr::mutate(...)
   28.         └─cardx:::.restore_original_column_types(cards, data = data$variables)
   29.           └─cards::as_card(...)
   30.             └─cards::check_ard_structure(...)
   31.               └─cards:::.message_or_error(...)
   32.                 └─cli::cli_abort(msg, call = call, .envir = envir)
   33.                   └─rlang::abort(...)
  ── Error ('test-labels.R:219:3'): add_auto_labels() preserves manual labels from tbl_svysummary ──
  Error in `gtsummary::tbl_svysummary(svy_trial, include = age, label = list(age ~ "Manual Override"))`: The following columns are not present: "warning" and "error".
  Backtrace:
       ▆
    1. ├─sumExtras::add_auto_labels(...) at test-labels.R:219:3
    2. └─gtsummary::tbl_svysummary(svy_trial, include = age, label = list(age ~ "Manual Override"))
    3.   ├─cards::replace_null_statistic(...)
    4.   │ └─cards:::check_class(x, "card")
    5.   ├─cards::bind_ard(...)
    6.   │ └─dplyr::bind_rows(...)
    7.   │   └─rlang::list2(...)
    8.   ├─cardx::ard_total_n(data)
    9.   └─cardx:::ard_total_n.survey.design(data)
   10.     ├─dplyr::select(...)
   11.     ├─dplyr::mutate(...)
   12.     ├─cards::ard_tabulate_value(...)
   13.     └─cardx:::ard_tabulate_value.survey.design(...)
   14.       ├─dplyr::mutate(...)
   15.       ├─dplyr::filter(...)
   16.       ├─cards::ard_tabulate(...)
   17.       └─cardx:::ard_tabulate.survey.design(...)
   18.         ├─cards::tidy_ard_row_order(...)
   19.         │ └─dplyr::select(x, all_ard_groups(c("names", "levels")))
   20.         ├─cards::tidy_ard_column_order(...)
   21.         │ ├─dplyr::pull(...)
   22.         │ ├─dplyr::arrange(...)
   23.         │ ├─base::data.frame(colname = names(dplyr::select(x, all_ard_groups())))
   24.         │ └─dplyr::select(x, all_ard_groups())
   25.         ├─cards::as_card(...)
   26.         │ └─cards:::check_class(x, cls = "data.frame")
   27.         ├─dplyr::mutate(...)
   28.         └─cardx:::.restore_original_column_types(cards, data = data$variables)
   29.           └─cards::as_card(...)
   30.             └─cards::check_ard_structure(...)
   31.               └─cards:::.message_or_error(...)
   32.                 └─cli::cli_abort(msg, call = call, .envir = envir)
   33.                   └─rlang::abort(...)
  
  [ FAIL 3 | WARN 2 | SKIP 0 | PASS 236 ]
  Error:
  ! Test failures.
  Execution halted