Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [48s/81s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(modelsummary)
  > 
  > test_check("modelsummary")
  Can't calculate log-loss.
  Can't calculate proper scoring rules for ordinal, multinomial or cumulative link models.
  Can't calculate log-loss.
  Can't calculate proper scoring rules for ordinal, multinomial or cumulative link models.
  Can't calculate log-loss.
  Can't calculate proper scoring rules for ordinal, multinomial or cumulative link models.
  Can't calculate log-loss.
  Can't calculate proper scoring rules for ordinal, multinomial or cumulative link models.
  Can't calculate log-loss.
  Can't calculate proper scoring rules for ordinal, multinomial or cumulative link models.
  Can't calculate log-loss.
  Can't calculate proper scoring rules for ordinal, multinomial or cumulative link models.
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (5)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-datasummary_balance.R:41:3): column percentages sum to 100 within factors ──
  Error: invalid 'digits' argument
  Backtrace:
       █
    1. └─modelsummary::datasummary_balance(~vs, dat, output = "dataframe") test-datasummary_balance.R:41:2
    2.   └─modelsummary:::datasummary_balance_factor(...)
    3.     ├─modelsummary::datasummary(...)
    4.     │ └─modelsummary:::datasummary_extract(tab, fmt = fmt, sparse_header = sparse_header)
    5.     │   ├─base::as.matrix(tab)
    6.     │   └─tables:::as.matrix.tabular(tab)
    7.     │     ├─base::format(x, ...)
    8.     │     └─tables:::format.tabular(x, ...)
    9.     │       └─base::eval(call, environment(table))
   10.     │         └─base::eval(call, environment(table))
   11.     ├─(function (x, ...) ...
   12.     └─base::format.default(...)
   13.       └─base::prettyNum(...)
  ── Error (test-datasummary_balance.R:52:3): palmer penguins was once broken with kableExtra ──
  Error: invalid 'digits' argument
  Backtrace:
       █
    1. └─modelsummary::datasummary_balance(~sex, penguins, output = "html") test-datasummary_balance.R:52:2
    2.   └─modelsummary:::datasummary_balance_factor(...)
    3.     ├─modelsummary::datasummary(...)
    4.     │ └─modelsummary:::datasummary_extract(tab, fmt = fmt, sparse_header = sparse_header)
    5.     │   ├─base::as.matrix(tab)
    6.     │   └─tables:::as.matrix.tabular(tab)
    7.     │     ├─base::format(x, ...)
    8.     │     └─tables:::format.tabular(x, ...)
    9.     │       └─base::eval(call, environment(table))
   10.     │         └─base::eval(call, environment(table))
   11.     ├─(function (x, ...) ...
   12.     └─base::format.default(...)
   13.       └─base::prettyNum(...)
  ── Error (test-datasummary_balance.R:69:3): add column ─────────────────────────
  Error: invalid 'digits' argument
  Backtrace:
       █
    1. └─modelsummary::datasummary_balance(...) test-datasummary_balance.R:69:2
    2.   └─modelsummary:::datasummary_balance_factor(...)
    3.     ├─modelsummary::datasummary(...)
    4.     │ └─modelsummary:::datasummary_extract(tab, fmt = fmt, sparse_header = sparse_header)
    5.     │   ├─base::as.matrix(tab)
    6.     │   └─tables:::as.matrix.tabular(tab)
    7.     │     ├─base::format(x, ...)
    8.     │     └─tables:::format.tabular(x, ...)
    9.     │       └─base::eval(call, environment(table))
   10.     │         └─base::eval(call, environment(table))
   11.     ├─(function (x, ...) ...
   12.     └─base::format.default(...)
   13.       └─base::prettyNum(...)
  ── Error (test-datasummary_balance.R:94:3): only factors ───────────────────────
  Error: invalid 'digits' argument
  Backtrace:
       █
    1. └─modelsummary::datasummary_balance(~am, tmp, output = "dataframe") test-datasummary_balance.R:94:2
    2.   └─modelsummary:::datasummary_balance_factor(...)
    3.     ├─modelsummary::datasummary(...)
    4.     │ └─modelsummary:::datasummary_extract(tab, fmt = fmt, sparse_header = sparse_header)
    5.     │   ├─base::as.matrix(tab)
    6.     │   └─tables:::as.matrix.tabular(tab)
    7.     │     ├─base::format(x, ...)
    8.     │     └─tables:::format.tabular(x, ...)
    9.     │       └─base::eval(call, environment(table))
   10.     │         └─base::eval(call, environment(table))
   11.     ├─(function (x, ...) ...
   12.     └─base::format.default(...)
   13.       └─base::prettyNum(...)
  ── Error (test-datasummary_balance.R:107:3): both factors and numerics ─────────
  Error: invalid 'digits' argument
  Backtrace:
       █
    1. └─modelsummary::datasummary_balance(~am, tmp, output = "dataframe") test-datasummary_balance.R:107:2
    2.   └─modelsummary:::datasummary_balance_factor(...)
    3.     ├─modelsummary::datasummary(...)
    4.     │ └─modelsummary:::datasummary_extract(tab, fmt = fmt, sparse_header = sparse_header)
    5.     │   ├─base::as.matrix(tab)
    6.     │   └─tables:::as.matrix.tabular(tab)
    7.     │     ├─base::format(x, ...)
    8.     │     └─tables:::format.tabular(x, ...)
    9.     │       └─base::eval(call, environment(table))
   10.     │         └─base::eval(call, environment(table))
   11.     ├─(function (x, ...) ...
   12.     └─base::format.default(...)
   13.       └─base::prettyNum(...)
  ── Error (test-datasummary_balance.R:120:3): more than two conditions ──────────
  Error: invalid 'digits' argument
  Backtrace:
       █
    1. └─modelsummary::datasummary_balance(...) test-datasummary_balance.R:120:2
    2.   └─modelsummary:::datasummary_balance_factor(...)
    3.     ├─modelsummary::datasummary(...)
    4.     │ └─modelsummary:::datasummary_extract(tab, fmt = fmt, sparse_header = sparse_header)
    5.     │   ├─base::as.matrix(tab)
    6.     │   └─tables:::as.matrix.tabular(tab)
    7.     │     ├─base::format(x, ...)
    8.     │     └─tables:::format.tabular(x, ...)
    9.     │       └─base::eval(call, environment(table))
   10.     │         └─base::eval(call, environment(table))
   11.     ├─(function (x, ...) ...
   12.     └─base::format.default(...)
   13.       └─base::prettyNum(...)
  ── Error (test-datasummary_balance.R:140:3): single factor ─────────────────────
  Error: invalid 'digits' argument
  Backtrace:
       █
    1. └─modelsummary::datasummary_balance(~am, data = tmp, output = "dataframe") test-datasummary_balance.R:140:2
    2.   └─modelsummary:::datasummary_balance_factor(...)
    3.     ├─modelsummary::datasummary(...)
    4.     │ └─modelsummary:::datasummary_extract(tab, fmt = fmt, sparse_header = sparse_header)
    5.     │   ├─base::as.matrix(tab)
    6.     │   └─tables:::as.matrix.tabular(tab)
    7.     │     ├─base::format(x, ...)
    8.     │     └─tables:::format.tabular(x, ...)
    9.     │       └─base::eval(call, environment(table))
   10.     │         └─base::eval(call, environment(table))
   11.     ├─(function (x, ...) ...
   12.     └─base::format.default(...)
   13.       └─base::prettyNum(...)
  ── Error (test-datasummary_balance.R:173:3): fmt ───────────────────────────────
  Error: invalid 'digits' argument
  Backtrace:
       █
    1. └─modelsummary::datasummary_balance(~am, tmp, fmt = "%.2f", output = "dataframe") test-datasummary_balance.R:173:2
    2.   └─modelsummary:::datasummary_balance_factor(...)
    3.     ├─modelsummary::datasummary(...)
    4.     │ └─modelsummary:::datasummary_extract(tab, fmt = fmt, sparse_header = sparse_header)
    5.     │   ├─base::as.matrix(tab)
    6.     │   └─tables:::as.matrix.tabular(tab)
    7.     │     ├─base::format(x, ...)
    8.     │     └─tables:::format.tabular(x, ...)
    9.     │       └─base::eval(call, environment(table))
   10.     │         └─base::eval(call, environment(table))
   11.     ├─(function (x, ...) ...
   12.     └─base::format.default(...)
   13.       └─base::prettyNum(...)
  ── Error (test-datasummary_skim.R:12:3): basic ─────────────────────────────────
  Error: invalid 'digits' argument
  Backtrace:
       █
    1. └─modelsummary::datasummary_skim(dat, type = "categorical", output = "data.frame") test-datasummary_skim.R:12:2
    2.   └─modelsummary:::datasummary_skim_categorical(...)
    3.     ├─modelsummary::datasummary(...)
    4.     │ └─modelsummary:::datasummary_extract(tab, fmt = fmt, sparse_header = sparse_header)
    5.     │   ├─base::as.matrix(tab)
    6.     │   └─tables:::as.matrix.tabular(tab)
    7.     │     ├─base::format(x, ...)
    8.     │     └─tables:::format.tabular(x, ...)
    9.     │       └─base::eval(call, environment(table))
   10.     │         └─base::eval(call, environment(table))
   11.     ├─(function (x, ...) ...
   12.     └─base::format.default(...)
   13.       └─base::prettyNum(...)
  ── Error (test-datasummary_skim.R:69:3): fmt ───────────────────────────────────
  Error: invalid 'digits' argument
  Backtrace:
       █
    1. └─modelsummary::datasummary_skim(...) test-datasummary_skim.R:69:2
    2.   └─modelsummary:::datasummary_skim_categorical(...)
    3.     ├─modelsummary::datasummary(...)
    4.     │ └─modelsummary:::datasummary_extract(tab, fmt = fmt, sparse_header = sparse_header)
    5.     │   ├─base::as.matrix(tab)
    6.     │   └─tables:::as.matrix.tabular(tab)
    7.     │     ├─base::format(x, ...)
    8.     │     └─tables:::format.tabular(x, ...)
    9.     │       └─base::eval(call, environment(table))
   10.     │         └─base::eval(call, environment(table))
   11.     ├─(function (x, ...) ...
   12.     └─base::format.default(...)
   13.       └─base::prettyNum(...)
  ── Error (test-datasummary_skim.R:76:3): empty string factor level (tricky for tables::tabular) ──
  Error: invalid 'digits' argument
  Backtrace:
       █
    1. └─modelsummary::datasummary_skim(tmp, "categorical", output = "data.frame") test-datasummary_skim.R:76:2
    2.   └─modelsummary:::datasummary_skim_categorical(...)
    3.     ├─modelsummary::datasummary(...)
    4.     │ └─modelsummary:::datasummary_extract(tab, fmt = fmt, sparse_header = sparse_header)
    5.     │   ├─base::as.matrix(tab)
    6.     │   └─tables:::as.matrix.tabular(tab)
    7.     │     ├─base::format(x, ...)
    8.     │     └─tables:::format.tabular(x, ...)
    9.     │       └─base::eval(call, environment(table))
   10.     │         └─base::eval(call, environment(table))
   11.     ├─(function (x, ...) ...
   12.     └─base::format.default(digits = 0, x = c(3L, 5L, 10L))
   13.       └─base::prettyNum(...)
  ── Error (test-datasummary_skim.R:85:3): too many factor levels ────────────────
  Error: invalid 'digits' argument
  Backtrace:
       █
    1. ├─testthat::expect_warning(...) test-datasummary_skim.R:85:2
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_warnings)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─modelsummary::datasummary_skim(tmp, type = "categorical", output = "data.frame")
    7.   └─modelsummary:::datasummary_skim_categorical(...)
    8.     ├─modelsummary::datasummary(...)
    9.     │ └─modelsummary:::datasummary_extract(tab, fmt = fmt, sparse_header = sparse_header)
   10.     │   ├─base::as.matrix(tab)
   11.     │   └─tables:::as.matrix.tabular(tab)
   12.     │     ├─base::format(x, ...)
   13.     │     └─tables:::format.tabular(x, ...)
   14.     │       └─base::eval(call, environment(table))
   15.     │         └─base::eval(call, environment(table))
   16.     ├─(function (x, ...) ...
   17.     └─base::format.default(...)
   18.       └─base::prettyNum(...)
  ── Error (test-datasummary_skim.R:93:3): completely missing variables are dropped ──
  Error: invalid 'digits' argument
  Backtrace:
       █
    1. ├─testthat::expect_warning(...) test-datasummary_skim.R:93:2
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_warnings)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─modelsummary::datasummary_skim(...)
    7.   └─modelsummary:::datasummary_skim_categorical(...)
    8.     ├─modelsummary::datasummary(...)
    9.     │ └─modelsummary:::datasummary_extract(tab, fmt = fmt, sparse_header = sparse_header)
   10.     │   ├─base::as.matrix(tab)
   11.     │   └─tables:::as.matrix.tabular(tab)
   12.     │     ├─base::format(x, ...)
   13.     │     └─tables:::format.tabular(x, ...)
   14.     │       └─base::eval(call, environment(table))
   15.     │         └─base::eval(call, environment(table))
   16.     ├─(function (x, ...) ...
   17.     └─base::format.default(...)
   18.       └─base::prettyNum(...)
  
  [ FAIL 13 | WARN 0 | SKIP 5 | PASS 274 ]
  Error: Test failures
  Execution halted