Running ‘testthat.R’ [7m/13m]
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)
  
  Attaching package: 'cards'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  > 
  > test_check("cards")
  Starting 2 test processes
  [ FAIL 1 | WARN 0 | SKIP 109 | PASS 246 ]
  
  ══ Skipped tests (109) ═════════════════════════════════════════════════════════
  • On CRAN (108): 'test-apply_fmt_fn.R:76:3', 'test-apply_fmt_fn.R:119:3',
    'test-ard_attributes.R:5:3', 'test-ard_attributes.R:29:3',
    'test-add_calculated_row.R:2:3', 'test-add_calculated_row.R:25:3',
    'test-add_calculated_row.R:33:3', 'test-ard_complex.R:87:3',
    'test-ard_complex.R:130:3', 'test-ard_categorical.R:6:3',
    'test-ard_categorical.R:77:3', 'test-ard_categorical.R:103:3',
    'test-ard_categorical.R:221:3', 'test-ard_categorical.R:245:3',
    'test-ard_categorical.R:403:3', 'test-ard_categorical.R:510:3',
    'test-ard_categorical.R:644:3', 'test-ard_categorical.R:724:3',
    'test-ard_categorical.R:833:3', 'test-ard_categorical.R:875:3',
    'test-ard_categorical.R:1102:3', 'test-ard_dichotomous.R:11:3',
    'test-ard_dichotomous.R:46:3', 'test-ard_dichotomous.R:100:3',
    'test-ard_hierarchical.R:12:3', 'test-ard_hierarchical.R:97:3',
    'test-ard_hierarchical.R:107:3', 'test-ard_hierarchical.R:141:3',
    'test-ard_hierarchical.R:234:3', 'test-ard_hierarchical.R:287:3',
    'test-ard_hierarchical.R:310:3', 'test-ard_missing.R:7:3',
    'test-ard_missing.R:31:3', 'test-ard_pairwise.R:54:3',
    'test-ard_pairwise.R:90:3', 'test-ard_pairwise.R:98:3',
    'test-ard_stack.R:251:3', 'test-ard_stack.R:269:3', 'test-ard_stack.R:300:3',
    'test-ard_stack_hierarchical.R:52:3', 'test-ard_stack_hierarchical.R:78:3',
    'test-ard_stack_hierarchical.R:144:3', 'test-ard_stack_hierarchical.R:158:3',
    'test-ard_stack_hierarchical.R:243:3', 'test-ard_stack_hierarchical.R:257:3',
    'test-ard_stack_hierarchical.R:351:3', 'test-ard_stack_hierarchical.R:426:3',
    'test-ard_stack_hierarchical.R:437:3', 'test-ard_stack_hierarchical.R:472:3',
    'test-ard_stack_hierarchical.R:510:3', 'test-ard_strata.R:2:3',
    'test-ard_total_n.R:2:3', 'test-as_card.R:2:3', 'test-as_card.R:22:3',
    'test-as_nested_list.R:2:3', 'test-bind_ard.R:14:3', 'test-bind_ard.R:28:3',
    'test-bind_ard.R:59:3', 'test-check_ard_structure.R:2:3',
    'test-eval_capture_conditions.R:3:3', 'test-eval_capture_conditions.R:46:3',
    'test-eval_capture_conditions.R:72:3', 'test-get_ard_statistics.R:4:3',
    'test-mock.R:3:3', 'test-mock.R:14:3', 'test-mock.R:26:3',
    'test-mock.R:36:3', 'test-mock.R:47:3', 'test-mock.R:58:3',
    'test-mock.R:69:3', 'test-mock.R:79:3', 'test-mock.R:90:3',
    'test-mock.R:99:3', 'test-mock.R:107:3', 'test-options.R:31:3',
    'test-print.R:2:3', 'test-print_ard_conditions.R:3:3',
    'test-print_ard_conditions.R:71:3', 'test-print_ard_conditions.R:100:3',
    'test-print_ard_conditions.R:131:3', 'test-print_ard_conditions.R:145:3',
    'test-process_selectors.R:52:3', 'test-process_selectors.R:85:3',
    'test-rename_ard_columns.R:14:3', 'test-rename_ard_columns.R:25:3',
    'test-rename_ard_groups.R:10:3', 'test-rename_ard_groups.R:19:3',
    'test-rename_ard_groups.R:36:3', 'test-round5.R:2:3',
    'test-ard_continuous.R:7:3', 'test-ard_continuous.R:35:3',
    'test-ard_continuous.R:86:3', 'test-ard_continuous.R:106:3',
    'test-ard_continuous.R:234:3', 'test-ard_continuous.R:288:3',
    'test-ard_continuous.R:421:3', 'test-shift_ard_columns.R:9:3',
    'test-shuffle_ard.R:9:3', 'test-shuffle_ard.R:68:3',
    'test-shuffle_ard.R:79:3', 'test-shuffle_ard.R:198:3',
    'test-tidy_as_ard.R:3:3', 'test-tidy_ard_row_order.R:7:3',
    'test-update_ard.R:12:3', 'test-update_ard.R:21:3', 'test-update_ard.R:30:3',
    'test-update_ard.R:58:3', 'test-update_ard.R:66:3'
  • {hms} is not installed (1): 'test-ard_categorical.R:854:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-apply_fmt_fn.R:44:3'): apply_fmt_fn() works with xx specification ──
  <dplyr:::mutate_error/rlang_error/error/condition>
  Error in `dplyr::mutate(x, stat_fmt = pmap(list(.data$stat, .data$variable, 
      .data$stat_name, .data$fmt_fn, .data$stat_fmt), function(stat, 
      variable, stat_name, fn, stat_fmt) {
      if (!is.null(fn) && is.null(stat_fmt)) {
          tryCatch(do.call(alias_as_fmt_fn(fn, variable, stat_name), 
              args = list(stat)), error = function(e) {
              cli::cli_abort(c("There was an error applying the formatting function to\n                       statistic {.val {stat_name}} for variable {.val {variable}}.", 
                  i = "Perhaps try formmatting function {.fun as.character}? See error message below:", 
                  x = conditionMessage(e)), call = get_cli_abort_call())
          })
      }
      else {
          stat_fmt
      }
  }))`: i In argument: `stat_fmt = pmap(...)`.
  Caused by error in `apply_fmt_fn()`:
  ! There was an error applying the formatting function to statistic "mean" for variable "mpg".
  i Perhaps try formmatting function `as.character()`? See error message below:
  x NA in coercion to Rboolean
  
  [ FAIL 1 | WARN 0 | SKIP 109 | PASS 246 ]
  Error: Test failures
  Execution halted