Running ‘testthat.R’ [154s/187s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tfrmt)
  > 
  > test_check("tfrmt")
  Writing json file out to:
  test.json
  i Denominator set by "TRT01A" column in `denominator` data frame.
  Saving _problems/test-apply_page_plan-890.R
  Saving _problems/test-shuffle_card-280.R
  Saving _problems/test-shuffle_card-539.R
  The following rows of the given dataset have no format applied to them 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36
  The following rows of the given dataset have no format applied to them 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
  [ FAIL 3 | WARN 0 | SKIP 36 | PASS 657 ]
  
  ══ Skipped tests (36) ══════════════════════════════════════════════════════════
  • On CRAN (36): 'test-JSON.R:1:1', 'test-JSON.R:33:1', 'test-JSON.R:49:1',
    'test-JSON.R:83:1', 'test-JSON.R:290:1', 'test-JSON.R:306:1',
    'test-JSON.R:369:1', 'test-JSON.R:463:1', 'test-JSON.R:495:1',
    'test-JSON.R:528:1', 'test-big_n.R:948:1', 'test-big_n.R:1181:1',
    'test-big_n.R:1261:1', 'test-make_mock_data.R:194:1', 'test-prep_card.R:1:1',
    'test-prep_card.R:422:1', 'test-prep_card.R:462:1', 'test-prep_card.R:493:1',
    'test-prep_card.R:524:1', 'test-prep_card.R:557:1', 'test-prep_card.R:576:1',
    'test-prep_card.R:604:1', 'test-prep_card.R:650:1', 'test-prep_card.R:675:1',
    'test-prep_card.R:699:1', 'test-prep_card.R:723:1', 'test-prep_card.R:757:1',
    'test-prep_card.R:916:1', 'test-prep_card.R:941:1', 'test-prep_card.R:972:1',
    'test-prep_card.R:1044:1', 'test-shuffle_card.R:1:1',
    'test-shuffle_card.R:67:1', 'test-shuffle_card.R:77:1',
    'test-shuffle_card.R:205:1', 'test-shuffle_card.R:404:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-apply_page_plan.R:880:3'): apply_page_plan() with label transformation in a complex table ──
  Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values
  Backtrace:
       ▆
    1. └─cards::ard_stack_hierarchical(...) at test-apply_page_plan.R:880: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)
  ── Error ('test-shuffle_card.R:271:3'): shuffle_card() fills grouping columns with `Overall <var>` or `Any <var>` ──
  Error in `as.data.frame.integer(x[[i]], optional = TRUE)`: row names contain missing values
  Backtrace:
       ▆
    1. └─cards::ard_stack_hierarchical(...) at test-shuffle_card.R:271: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)
  ── Error ('test-shuffle_card.R:530:3'): shuffle_card() 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_card.R:530: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 3 | WARN 0 | SKIP 36 | PASS 657 ]
  Error:
  ! Test failures.
  Execution halted