Running ‘testthat.R’ [7m/17m]
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(cards)
  > 
  > test_check("cards")
  Starting 2 test processes.
  Saving _problems/test-ard_hierarchical-45.R
  Saving _problems/test-ard_hierarchical-67.R
  Saving _problems/test-ard_hierarchical-278.R
  Saving _problems/test-ard_stack_hierarchical-73.R
  Saving _problems/test-ard_stack_hierarchical-111.R
  Saving _problems/test-ard_stack_hierarchical-182.R
  Saving _problems/test-ard_stack_hierarchical-249.R
  Saving _problems/test-ard_stack_hierarchical-263.R
  Saving _problems/test-ard_stack_hierarchical-734.R
  Saving _problems/test-ard_tabulate-151.R
  Saving _problems/test-ard_tabulate-162.R
  Saving _problems/test-ard_tabulate-471.R
  Saving _problems/test-ard_tabulate-640.R
  Saving _problems/test-ard_tabulate-769.R
  Saving _problems/test-ard_tabulate-1315.R
  > test-bind_ard.R: i 27 rows with duplicated statistic values have been removed.
  > test-bind_ard.R: * See cards::bind_ard(.distinct) (`?cards::bind_ard()`) for detail
  > test-bind_ard.R: s.
  Saving _problems/test-shuffle_ard-366.R
  Saving _problems/test-shuffle_ard-375.R
  Saving _problems/test-shuffle_ard-633.R
  [ FAIL 18 | WARN 0 | SKIP 109 | PASS 293 ]
  
  ══ Skipped tests (109) ═════════════════════════════════════════════════════════
  • On CRAN (106): 'test-apply_fmt_fun.R:86:1', 'test-apply_fmt_fun.R:122:1',
    'test-add_calculated_row.R:1:1', 'test-add_calculated_row.R:24:1',
    'test-add_calculated_row.R:32:1', 'test-ard_formals.R:1:1',
    'test-ard_attributes.R:3:1', 'test-ard_attributes.R:28:1',
    'test-ard_identity.R:28:1', 'test-ard_missing.R:1:1',
    'test-ard_missing.R:29:1', 'test-ard_mvsummary.R:85:1',
    'test-ard_mvsummary.R:128:1', 'test-ard_pairwise.R:52:1',
    'test-ard_pairwise.R:89:1', 'test-ard_pairwise.R:96:1',
    'test-ard_hierarchical.R:2:1', 'test-ard_hierarchical.R:107:1',
    'test-ard_hierarchical.R:117:1', 'test-ard_hierarchical.R:143:1',
    'test-ard_hierarchical.R:253:1', 'test-ard_hierarchical.R:305:1',
    'test-ard_hierarchical.R:328:1', 'test-ard_stack_hierarchical.R:76:1',
    'test-ard_stack_hierarchical.R:335:1', 'test-ard_stack_hierarchical.R:349:1',
    'test-ard_stack_hierarchical.R:497:1', 'test-ard_stack_hierarchical.R:575:1',
    'test-ard_stack_hierarchical.R:586:1', 'test-ard_stack_hierarchical.R:599:1',
    'test-ard_stack_hierarchical.R:667:1', 'test-ard_stack.R:221:1',
    'test-ard_stack.R:239:1', 'test-ard_stack.R:267:1', 'test-ard_strata.R:1:1',
    'test-ard_tabulate.R:1:1', 'test-ard_tabulate.R:67:1',
    'test-ard_tabulate.R:101:1', 'test-ard_tabulate.R:245:1',
    'test-ard_tabulate.R:563:1', 'test-ard_tabulate.R:699:1',
    'test-ard_tabulate.R:772:1', 'test-ard_tabulate.R:1081:1',
    'test-ard_tabulate.R:1130:1', 'test-ard_tabulate.R:1371:1',
    'test-ard_tabulate_value.R:49:1', 'test-ard_tabulate_value.R:102:1',
    'test-ard_total_n.R:1:1', 'test-as_card.R:1:1', 'test-as_card.R:21:1',
    'test-as_nested_list.R:1:1', 'test-bind_ard.R:11:1', 'test-bind_ard.R:25:1',
    'test-bind_ard.R:58:1', 'test-check_ard_structure.R:1:1',
    'test-eval_capture_conditions.R:1:1', 'test-eval_capture_conditions.R:37:1',
    'test-eval_capture_conditions.R:63:1', 'test-filter_ard_hierarchical.R:1:1',
    'test-get_ard_statistics.R:1:1', 'test-mock.R:1:1', 'test-mock.R:12:1',
    'test-mock.R:24:1', 'test-mock.R:34:1', 'test-mock.R:45:1',
    'test-mock.R:56:1', 'test-mock.R:67:1', 'test-mock.R:77:1',
    'test-mock.R:88:1', 'test-mock.R:97:1', 'test-mock.R:105:1',
    'test-options.R:29:1', 'test-print.R:1:1', 'test-print_ard_conditions.R:1:1',
    'test-print_ard_conditions.R:69:1', 'test-print_ard_conditions.R:99:1',
    'test-print_ard_conditions.R:110:1', 'test-print_ard_conditions.R:137:1',
    'test-process_selectors.R:51:1', 'test-process_selectors.R:63:1',
    'test-rename_ard_columns.R:32:1', 'test-rename_ard_groups.R:1:1',
    'test-rename_ard_groups.R:18:1', 'test-rename_ard_groups.R:27:1',
    'test-round5.R:1:1', 'test-shuffle_ard.R:3:1', 'test-shuffle_ard.R:118:1',
    'test-shuffle_ard.R:129:1', 'test-shuffle_ard.R:269:1',
    'test-shuffle_ard.R:402:1', 'test-shuffle_ard.R:488:1',
    'test-sort_ard_hierarchical.R:1:1', 'test-tidy_ard_row_order.R:1:1',
    'test-tidy_as_ard.R:1:1', 'test-update_ard.R:1:1', 'test-update_ard.R:19:1',
    'test-update_ard.R:28:1', 'test-update_ard.R:56:1', 'test-update_ard.R:64:1',
    'test-ard_summary.R:1:1', 'test-ard_summary.R:34:1',
    'test-ard_summary.R:84:1', 'test-ard_summary.R:104:1',
    'test-ard_summary.R:228:1', 'test-ard_summary.R:249:1',
    'test-ard_summary.R:419:1'
  • Required package 'hms' is not installed (1): 'test-ard_tabulate.R:1111:3'
  • package_version(paste(R.version$major, R.version$minor, sep = ".")) <=
    package_version("4.5.0") is not TRUE (2): 'test-ard_strata.R:73:3',
    'test-ard_tabulate_value.R:39:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-ard_hierarchical.R:36:3'): ard_hierarchical() works with by variable ──
  Expected `... <- NULL` not to throw any errors.
  Actually got a <simpleError> with message:
    row names contain missing values
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-ard_hierarchical.R:36: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. ├─cards::ard_hierarchical(...)
    8. └─cards:::ard_hierarchical.data.frame(...)
    9.   ├─cards::ard_tabulate(...)
   10.   └─cards:::ard_tabulate.data.frame(...)
   11.     └─cards:::.calculate_tabulation_statistics(...)
   12.       └─cards:::.process_denominator(...)
   13.         ├─rlang::rep_named(...)
   14.         │ └─rlang::set_names(rep_len(x, length(names)), names)
   15.         ├─tidyr::drop_na(...)
   16.         └─cards:::.table_as_df(...)
   17.           ├─dplyr::as_tibble(...)
   18.           └─tibble:::as_tibble.table(...)
   19.             ├─base::as.data.frame(x, stringsAsFactors = FALSE)
   20.             └─base::as.data.frame.table(x, stringsAsFactors = FALSE)
   21.               ├─base::eval(ex)
   22.               │ └─base::eval(ex)
   23.               └─base::data.frame(...)
   24.                 ├─base::as.data.frame(x[[i]], optional = TRUE)
   25.                 └─base::as.data.frame.integer(x[[i]], optional = TRUE)
  ── Error ('test-ard_hierarchical.R:47:3'): ard_hierarchical() works with by variable ──
  <objectNotFoundError/error/condition>
  Error in `eval(code, test_env)`: object 'ard_heir_with_by' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-ard_hierarchical.R:47:3
   2. │ └─testthat::quasi_label(enquo(object), label)
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─cards::get_ard_statistics(...)
   5. │ └─dplyr::filter(x, ...)
   6. └─dplyr::filter(...)
  ── Error ('test-ard_hierarchical.R:265:3'): ard_hierarchical() and ard_hierarchical_count() with grouped data works ──
  Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-ard_hierarchical.R:265:3
    2. │ └─testthat::quasi_label(enquo(object), label)
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─cards::ard_hierarchical(...)
    5. └─cards:::ard_hierarchical.data.frame(...)
    6.   ├─cards::ard_tabulate(...)
    7.   └─cards:::ard_tabulate.data.frame(...)
    8.     └─cards:::.calculate_tabulation_statistics(...)
    9.       └─cards:::.process_denominator(...)
   10.         ├─rlang::rep_named(...)
   11.         │ └─rlang::set_names(rep_len(x, length(names)), names)
   12.         ├─tidyr::drop_na(...)
   13.         └─cards:::.table_as_df(...)
   14.           ├─dplyr::as_tibble(...)
   15.           └─tibble:::as_tibble.table(...)
   16.             ├─base::as.data.frame(x, stringsAsFactors = FALSE)
   17.             └─base::as.data.frame.table(x, stringsAsFactors = FALSE)
   18.               ├─base::eval(ex)
   19.               │ └─base::eval(ex)
   20.               └─base::data.frame(...)
   21.                 ├─base::as.data.frame(x[[i]], optional = TRUE)
   22.                 └─base::as.data.frame.integer(x[[i]], optional = TRUE)
  ── Error ('test-ard_stack_hierarchical.R:64:3'): ard_stack_hierarchical(variables) messaging removed obs ──
  Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values
  Backtrace:
       ▆
    1. └─cards::ard_stack_hierarchical(...)
    2.   └─cards:::internal_stack_hierarchical(...)
    3.     ├─base::append(...)
    4.     └─cards:::.run_hierarchical_fun(...)
    5.       ├─cards::ard_hierarchical(...)
    6.       └─cards:::ard_hierarchical.data.frame(...)
    7.         ├─cards::ard_tabulate(...)
    8.         └─cards:::ard_tabulate.data.frame(...)
    9.           └─cards:::.calculate_tabulation_statistics(...)
   10.             └─cards:::.process_denominator(...)
   11.               ├─rlang::rep_named(...)
   12.               │ └─rlang::set_names(rep_len(x, length(names)), names)
   13.               ├─tidyr::drop_na(...)
   14.               └─cards:::.table_as_df(...)
   15.                 ├─dplyr::as_tibble(...)
   16.                 └─tibble:::as_tibble.table(...)
   17.                   ├─base::as.data.frame(x, stringsAsFactors = FALSE)
   18.                   └─base::as.data.frame.table(x, stringsAsFactors = FALSE)
   19.                     ├─base::eval(ex)
   20.                     │ └─base::eval(ex)
   21.                     └─base::data.frame(...)
   22.                       ├─base::as.data.frame(x[[i]], optional = TRUE)
   23.                       └─base::as.data.frame.integer(x[[i]], optional = TRUE)
  ── Error ('test-ard_stack_hierarchical.R:102:3'): ard_stack_hierarchical(by) ───
  Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(...) at test-ard_stack_hierarchical.R:102:3
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─cards::ard_stack_hierarchical(...)
   10.   └─cards:::internal_stack_hierarchical(...)
   11.     ├─base::append(...)
   12.     └─cards:::.run_hierarchical_fun(...)
   13.       ├─cards::ard_hierarchical(...)
   14.       └─cards:::ard_hierarchical.data.frame(...)
   15.         ├─cards::ard_tabulate(...)
   16.         └─cards:::ard_tabulate.data.frame(...)
   17.           └─cards:::.calculate_tabulation_statistics(...)
   18.             └─cards:::.process_denominator(...)
   19.               ├─rlang::rep_named(...)
   20.               │ └─rlang::set_names(rep_len(x, length(names)), names)
   21.               ├─tidyr::drop_na(...)
   22.               └─cards:::.table_as_df(...)
   23.                 ├─dplyr::as_tibble(...)
   24.                 └─tibble:::as_tibble.table(...)
   25.                   ├─base::as.data.frame(x, stringsAsFactors = FALSE)
   26.                   └─base::as.data.frame.table(x, stringsAsFactors = FALSE)
   27.                     ├─base::eval(ex)
   28.                     │ └─base::eval(ex)
   29.                     └─base::data.frame(...)
   30.                       ├─base::as.data.frame(x[[i]], optional = TRUE)
   31.                       └─base::as.data.frame.integer(x[[i]], optional = TRUE)
  ── Error ('test-ard_stack_hierarchical.R:173:3'): ard_stack_hierarchical(by) messaging ──
  Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values
  Backtrace:
       ▆
    1. └─cards::ard_stack_hierarchical(...)
    2.   └─cards:::internal_stack_hierarchical(...)
    3.     ├─base::append(...)
    4.     └─cards:::.run_hierarchical_fun(...)
    5.       ├─cards::ard_hierarchical(...)
    6.       └─cards:::ard_hierarchical.data.frame(...)
    7.         ├─cards::ard_tabulate(...)
    8.         └─cards:::ard_tabulate.data.frame(...)
    9.           └─cards:::.calculate_tabulation_statistics(...)
   10.             └─cards:::.process_denominator(...)
   11.               ├─rlang::rep_named(...)
   12.               │ └─rlang::set_names(rep_len(x, length(names)), names)
   13.               ├─tidyr::drop_na(...)
   14.               └─cards:::.table_as_df(...)
   15.                 ├─dplyr::as_tibble(...)
   16.                 └─tibble:::as_tibble.table(...)
   17.                   ├─base::as.data.frame(x, stringsAsFactors = FALSE)
   18.                   └─base::as.data.frame.table(x, stringsAsFactors = FALSE)
   19.                     ├─base::eval(ex)
   20.                     │ └─base::eval(ex)
   21.                     └─base::data.frame(...)
   22.                       ├─base::as.data.frame(x[[i]], optional = TRUE)
   23.                       └─base::as.data.frame.integer(x[[i]], optional = TRUE)
  ── Error ('test-ard_stack_hierarchical.R:232:3'): ard_stack_hierarchical(denominator) messaging ──
  Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-ard_stack_hierarchical.R:232:3
    2. │ └─testthat::quasi_label(enquo(object), label)
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─cards::ard_stack_hierarchical(...)
    5.   └─cards:::internal_stack_hierarchical(...)
    6.     ├─base::append(...)
    7.     └─cards:::.run_hierarchical_fun(...)
    8.       ├─cards::ard_hierarchical(...)
    9.       └─cards:::ard_hierarchical.data.frame(...)
   10.         ├─cards::ard_tabulate(...)
   11.         └─cards:::ard_tabulate.data.frame(...)
   12.           └─cards:::.calculate_tabulation_statistics(...)
   13.             └─cards:::.process_denominator(...)
   14.               ├─rlang::rep_named(...)
   15.               │ └─rlang::set_names(rep_len(x, length(names)), names)
   16.               ├─tidyr::drop_na(...)
   17.               └─cards:::.table_as_df(...)
   18.                 ├─dplyr::as_tibble(...)
   19.                 └─tibble:::as_tibble.table(...)
   20.                   ├─base::as.data.frame(x, stringsAsFactors = FALSE)
   21.                   └─base::as.data.frame.table(x, stringsAsFactors = FALSE)
   22.                     ├─base::eval(ex)
   23.                     │ └─base::eval(ex)
   24.                     └─base::data.frame(...)
   25.                       ├─base::as.data.frame(x[[i]], optional = TRUE)
   26.                       └─base::as.data.frame.integer(x[[i]], optional = TRUE)
  ── Error ('test-ard_stack_hierarchical.R:254:3'): ard_stack_hierarchical(by) with columns not in `denominator` ──
  Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test-ard_stack_hierarchical.R:254: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. └─cards::ard_stack_hierarchical(...)
    8.   └─cards:::internal_stack_hierarchical(...)
    9.     ├─base::append(...)
   10.     └─cards:::.run_hierarchical_fun(...)
   11.       ├─cards::ard_hierarchical(...)
   12.       └─cards:::ard_hierarchical.data.frame(...)
   13.         ├─cards::ard_tabulate(...)
   14.         └─cards:::ard_tabulate.data.frame(...)
   15.           └─cards:::.calculate_tabulation_statistics(...)
   16.             └─cards:::.process_denominator(...)
   17.               ├─rlang::rep_named(...)
   18.               │ └─rlang::set_names(rep_len(x, length(names)), names)
   19.               ├─tidyr::drop_na(...)
   20.               └─cards:::.table_as_df(...)
   21.                 ├─dplyr::as_tibble(...)
   22.                 └─tibble:::as_tibble.table(...)
   23.                   ├─base::as.data.frame(x, stringsAsFactors = FALSE)
   24.                   └─base::as.data.frame.table(x, stringsAsFactors = FALSE)
   25.                     ├─base::eval(ex)
   26.                     │ └─base::eval(ex)
   27.                     └─base::data.frame(...)
   28.                       ├─base::as.data.frame(x[[i]], optional = TRUE)
   29.                       └─base::as.data.frame.integer(x[[i]], optional = TRUE)
  ── Error ('test-ard_stack_hierarchical.R:724:3'): ard_stack_hierarchical() by_stats argument ──
  Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(...) at test-ard_stack_hierarchical.R:724:3
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─cards::ard_stack_hierarchical(...)
   10.   └─cards:::internal_stack_hierarchical(...)
   11.     ├─base::append(...)
   12.     └─cards:::.run_hierarchical_fun(...)
   13.       ├─cards::ard_hierarchical(...)
   14.       └─cards:::ard_hierarchical.data.frame(...)
   15.         ├─cards::ard_tabulate(...)
   16.         └─cards:::ard_tabulate.data.frame(...)
   17.           └─cards:::.calculate_tabulation_statistics(...)
   18.             └─cards:::.process_denominator(...)
   19.               ├─rlang::rep_named(...)
   20.               │ └─rlang::set_names(rep_len(x, length(names)), names)
   21.               ├─tidyr::drop_na(...)
   22.               └─cards:::.table_as_df(...)
   23.                 ├─dplyr::as_tibble(...)
   24.                 └─tibble:::as_tibble.table(...)
   25.                   ├─base::as.data.frame(x, stringsAsFactors = FALSE)
   26.                   └─base::as.data.frame.table(x, stringsAsFactors = FALSE)
   27.                     ├─base::eval(ex)
   28.                     │ └─base::eval(ex)
   29.                     └─base::data.frame(...)
   30.                       ├─base::as.data.frame(x[[i]], optional = TRUE)
   31.                       └─base::as.data.frame.integer(x[[i]], optional = TRUE)
  ── Failure ('test-ard_tabulate.R:141:3'): ard_tabulate() with strata and by arguments ──
  Expected `... <- NULL` not to throw any errors.
  Actually got a <simpleError> with message:
    row names contain missing values
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-ard_tabulate.R:141: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. ├─cards::ard_tabulate(...)
    8. └─cards:::ard_tabulate.data.frame(...)
    9.   └─cards:::.calculate_tabulation_statistics(...)
   10.     └─cards:::.process_denominator(...)
   11.       ├─rlang::rep_named(...)
   12.       │ └─rlang::set_names(rep_len(x, length(names)), names)
   13.       ├─tidyr::drop_na(...)
   14.       └─cards:::.table_as_df(...)
   15.         ├─dplyr::as_tibble(...)
   16.         └─tibble:::as_tibble.table(...)
   17.           ├─base::as.data.frame(x, stringsAsFactors = FALSE)
   18.           └─base::as.data.frame.table(x, stringsAsFactors = FALSE)
   19.             ├─base::eval(ex)
   20.             │ └─base::eval(ex)
   21.             └─base::data.frame(...)
   22.               ├─base::as.data.frame(x[[i]], optional = TRUE)
   23.               └─base::as.data.frame.integer(x[[i]], optional = TRUE)
  ── Error ('test-ard_tabulate.R:154:3'): ard_tabulate() with strata and by arguments ──
  <objectNotFoundError/error/condition>
  Error in `eval(code, test_env)`: object 'card_ae_strata' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-ard_tabulate.R:154:3
   2. │ └─testthat::quasi_label(enquo(object), label)
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─base::nrow(...)
   5. └─dplyr::filter(...)
  ── Error ('test-ard_tabulate.R:461:3'): ard_tabulate(denominator='row') works ──
  Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-ard_tabulate.R:461:3
    2. │ └─testthat::quasi_label(enquo(object), label)
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::unlist(...)
    5. ├─dplyr::pull(...)
    6. ├─cards::ard_tabulate(...)
    7. └─cards:::ard_tabulate.data.frame(...)
    8.   └─cards:::.calculate_tabulation_statistics(...)
    9.     └─cards:::.process_denominator(...)
   10.       ├─stats::setNames(...)
   11.       └─base::lapply(...)
   12.         └─cards (local) FUN(X[[i]], ...)
   13.           ├─dplyr::summarise(...)
   14.           ├─tidyr::drop_na(...)
   15.           └─cards:::.table_as_df(...)
   16.             ├─dplyr::as_tibble(...)
   17.             └─tibble:::as_tibble.table(...)
   18.               ├─base::as.data.frame(x, stringsAsFactors = FALSE)
   19.               └─base::as.data.frame.table(x, stringsAsFactors = FALSE)
   20.                 ├─base::eval(ex)
   21.                 │ └─base::eval(ex)
   22.                 └─base::data.frame(...)
   23.                   ├─base::as.data.frame(x[[i]], optional = TRUE)
   24.                   └─base::as.data.frame.integer(x[[i]], optional = TRUE)
  ── Error ('test-ard_tabulate.R:627:3'): ard_tabulate(denominator=<data frame without counts>) works ──
  Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-ard_tabulate.R:627:3
    2. │ └─testthat::quasi_label(enquo(object), label)
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::unique(...)
    5. ├─base::unlist(...)
    6. ├─dplyr::pull(...)
    7. ├─cards::ard_tabulate(...)
    8. └─cards:::ard_tabulate.data.frame(...)
    9.   └─cards:::.calculate_tabulation_statistics(...)
   10.     └─cards:::.process_denominator(...)
   11.       ├─rlang::rep_named(...)
   12.       │ └─rlang::set_names(rep_len(x, length(names)), names)
   13.       ├─tidyr::drop_na(...)
   14.       └─cards:::.table_as_df(...)
   15.         ├─dplyr::as_tibble(...)
   16.         └─tibble:::as_tibble.table(...)
   17.           ├─base::as.data.frame(x, stringsAsFactors = FALSE)
   18.           └─base::as.data.frame.table(x, stringsAsFactors = FALSE)
   19.             ├─base::eval(ex)
   20.             │ └─base::eval(ex)
   21.             └─base::data.frame(...)
   22.               ├─base::as.data.frame(x[[i]], optional = TRUE)
   23.               └─base::as.data.frame.integer(x[[i]], optional = TRUE)
  ── Error ('test-ard_tabulate.R:751:3'): ard_tabulate(strata) returns results in proper order ──
  Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-ard_tabulate.R:751:3
    2. │ └─testthat::quasi_label(enquo(object), label)
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::unique(...)
    5. ├─base::unlist(...)
    6. ├─dplyr::select(...)
    7. ├─cards::ard_tabulate(...)
    8. └─cards:::ard_tabulate.data.frame(...)
    9.   └─cards:::.calculate_tabulation_statistics(...)
   10.     └─cards:::.process_denominator(...)
   11.       ├─rlang::rep_named(...)
   12.       │ └─rlang::set_names(rep_len(x, length(names)), names)
   13.       ├─tidyr::drop_na(...)
   14.       └─cards:::.table_as_df(...)
   15.         ├─dplyr::as_tibble(...)
   16.         └─tibble:::as_tibble.table(...)
   17.           ├─base::as.data.frame(x, stringsAsFactors = FALSE)
   18.           └─base::as.data.frame.table(x, stringsAsFactors = FALSE)
   19.             ├─base::eval(ex)
   20.             │ └─base::eval(ex)
   21.             └─base::data.frame(...)
   22.               ├─base::as.data.frame(x[[i]], optional = TRUE)
   23.               └─base::as.data.frame.integer(x[[i]], optional = TRUE)
  ── Error ('test-ard_tabulate.R:1307:3'): ard_tabulate(denominator='row') with cumulative counts ──
  Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(...) at test-ard_tabulate.R:1307:3
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. ├─cards::ard_tabulate(...)
   10. └─cards:::ard_tabulate.data.frame(...)
   11.   └─cards:::.calculate_tabulation_statistics(...)
   12.     └─cards:::.process_denominator(...)
   13.       ├─stats::setNames(...)
   14.       └─base::lapply(...)
   15.         └─cards (local) FUN(X[[i]], ...)
   16.           ├─dplyr::summarise(...)
   17.           ├─tidyr::drop_na(...)
   18.           └─cards:::.table_as_df(...)
   19.             ├─dplyr::as_tibble(...)
   20.             └─tibble:::as_tibble.table(...)
   21.               ├─base::as.data.frame(x, stringsAsFactors = FALSE)
   22.               └─base::as.data.frame.table(x, stringsAsFactors = FALSE)
   23.                 ├─base::eval(ex)
   24.                 │ └─base::eval(ex)
   25.                 └─base::data.frame(...)
   26.                   ├─base::as.data.frame(x[[i]], optional = TRUE)
   27.                   └─base::as.data.frame.integer(x[[i]], optional = TRUE)
  ── Failure ('test-shuffle_ard.R:349:3'): shuffle_ard() fills grouping columns with `Overall <var>` or `Any <var>` ──
  Expected `expect_warning(...)` not to throw any errors.
  Actually got a <simpleError> with message:
    row names contain missing values
  ── Error ('test-shuffle_ard.R:368:3'): shuffle_ard() fills grouping columns with `Overall <var>` or `Any <var>` ──
  <objectNotFoundError/error/condition>
  Error in `eval(code, test_env)`: object 'shuffled_ard' not found
  Backtrace:
      ▆
   1. ├─testthat::expect_identical(...) at test-shuffle_ard.R:368:3
   2. │ └─testthat::quasi_label(enquo(object), label)
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─dplyr::pull(...)
   5. └─dplyr::filter(shuffled_ard, variable == "..ard_total_n..")
  ── Error ('test-shuffle_ard.R:624:3'): shuffle_ard() preserves the attributes of a `card` object ──
  Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values
  Backtrace:
       ▆
    1. └─cards::ard_stack_hierarchical(...) at test-shuffle_ard.R:624:3
    2.   └─cards:::internal_stack_hierarchical(...)
    3.     ├─base::append(...)
    4.     └─cards:::.run_hierarchical_fun(...)
    5.       ├─cards::ard_hierarchical(...)
    6.       └─cards:::ard_hierarchical.data.frame(...)
    7.         ├─cards::ard_tabulate(...)
    8.         └─cards:::ard_tabulate.data.frame(...)
    9.           └─cards:::.calculate_tabulation_statistics(...)
   10.             └─cards:::.process_denominator(...)
   11.               ├─rlang::rep_named(...)
   12.               │ └─rlang::set_names(rep_len(x, length(names)), names)
   13.               ├─tidyr::drop_na(...)
   14.               └─cards:::.table_as_df(...)
   15.                 ├─dplyr::as_tibble(...)
   16.                 └─tibble:::as_tibble.table(...)
   17.                   ├─base::as.data.frame(x, stringsAsFactors = FALSE)
   18.                   └─base::as.data.frame.table(x, stringsAsFactors = FALSE)
   19.                     ├─base::eval(ex)
   20.                     │ └─base::eval(ex)
   21.                     └─base::data.frame(...)
   22.                       ├─base::as.data.frame(x[[i]], optional = TRUE)
   23.                       └─base::as.data.frame.integer(x[[i]], optional = TRUE)
  
  [ FAIL 18 | WARN 0 | SKIP 109 | PASS 293 ]
  Error:
  ! Test failures.
  Execution halted