Running ‘testthat.R’ [36s/45s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(actxps)
  
  Attaching package: 'actxps'
  
  The following object is masked from 'package:stats':
  
      filter
  
  > 
  > test_check("actxps")
  [ FAIL 4 | WARN 3 | SKIP 0 | PASS 302 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-tables.R:13:3'): Autotable works ───────────────────────────────
  Error in `gt::gt(select(object, -dplyr::starts_with(".weight")), rowname_col = rowname_col, 
      ...)`: The column(s) "rowname" specified in `rowname_col` do not exist in the data.
  * Available columns are: "pol_yr", "inc_guar", "n_claims", "claims", "exposure", and "q_obs"
  Backtrace:
       ▆
    1. ├─testthat::expect_s3_class(autotable(exp_res), c("gt_tbl", "list")) at test-tables.R:13:3
    2. │ └─testthat::quasi_label(enquo(object), arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─actxps::autotable(exp_res)
    5. └─actxps:::autotable.exp_df(exp_res)
    6.   ├─gt::tab_source_note(...)
    7.   │ └─gt:::stop_if_not_gt_tbl(data = data)
    8.   │   └─gt:::is_gt_tbl(data = data)
    9.   ├─gt::tab_header(...)
   10.   │ └─gt:::stop_if_not_gt_tbl(data = data)
   11.   │   └─gt:::is_gt_tbl(data = data)
   12.   ├─gt::cols_label(...)
   13.   │ └─gt:::stop_if_not_gt_tbl_or_group(data = .data)
   14.   │   └─gt:::is_gt_tbl_or_group(data)
   15.   ├─gt::cols_label(...)
   16.   │ └─gt:::stop_if_not_gt_tbl_or_group(data = .data)
   17.   │   └─gt:::is_gt_tbl_or_group(data)
   18.   ├─gt::tab_options(...)
   19.   │ └─gt:::stop_if_not_gt_tbl(data = data)
   20.   │   └─gt:::is_gt_tbl(data = data)
   21.   ├─gt::fmt_percent(...)
   22.   │ └─gt:::stop_if_not_gt_tbl(data = data)
   23.   │   └─gt:::is_gt_tbl(data = data)
   24.   ├─gt::fmt_number(...)
   25.   │ └─gt:::stop_if_not_gt_tbl(data = data)
   26.   │   └─gt:::is_gt_tbl(data = data)
   27.   └─gt::gt(...)
   28.     └─cli::cli_abort(...)
   29.       └─rlang::abort(...)
  ── Error ('test-tables.R:22:3'): Renaming works ────────────────────────────────
  Error in `gt::gt(select(object, -dplyr::starts_with(".weight")), rowname_col = rowname_col, 
      ...)`: The column(s) "rowname" specified in `rowname_col` do not exist in the data.
  * Available columns are: "pol_yr", "inc_guar", "n_claims", "claims", "exposure", "q_obs", "q_exp", "ae_q_exp", and "credibility"
  Backtrace:
       ▆
    1. ├─testthat::expect_s3_class(...) at test-tables.R:22:3
    2. │ └─testthat::quasi_label(enquo(object), arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─actxps::autotable(...)
    5. └─actxps:::autotable.exp_df(...)
    6.   ├─gt::tab_source_note(...)
    7.   │ └─gt:::stop_if_not_gt_tbl(data = data)
    8.   │   └─gt:::is_gt_tbl(data = data)
    9.   ├─gt::tab_header(...)
   10.   │ └─gt:::stop_if_not_gt_tbl(data = data)
   11.   │   └─gt:::is_gt_tbl(data = data)
   12.   ├─gt::cols_label(...)
   13.   │ └─gt:::stop_if_not_gt_tbl_or_group(data = .data)
   14.   │   └─gt:::is_gt_tbl_or_group(data)
   15.   ├─gt::cols_label(...)
   16.   │ └─gt:::stop_if_not_gt_tbl_or_group(data = .data)
   17.   │   └─gt:::is_gt_tbl_or_group(data)
   18.   ├─gt::tab_options(...)
   19.   │ └─gt:::stop_if_not_gt_tbl(data = data)
   20.   │   └─gt:::is_gt_tbl(data = data)
   21.   ├─gt::fmt_percent(...)
   22.   │ └─gt:::stop_if_not_gt_tbl(data = data)
   23.   │   └─gt:::is_gt_tbl(data = data)
   24.   ├─gt::fmt_number(...)
   25.   │ └─gt:::stop_if_not_gt_tbl(data = data)
   26.   │   └─gt:::is_gt_tbl(data = data)
   27.   └─gt::gt(...)
   28.     └─cli::cli_abort(...)
   29.       └─rlang::abort(...)
  ── Error ('test-tables.R:33:3'): Table confidence interval warning works ───────
  Error in `gt::gt(select(object, -dplyr::starts_with(".weight")), rowname_col = rowname_col, 
      ...)`: The column(s) "rowname" specified in `rowname_col` do not exist in the data.
  * Available columns are: "pol_yr", "inc_guar", "n_claims", "claims", "exposure", and "q_obs"
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test-tables.R:33: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. ├─actxps::autotable(exp_res, show_conf_int = TRUE)
    8. └─actxps:::autotable.exp_df(exp_res, show_conf_int = TRUE)
    9.   ├─gt::tab_source_note(...)
   10.   │ └─gt:::stop_if_not_gt_tbl(data = data)
   11.   │   └─gt:::is_gt_tbl(data = data)
   12.   ├─gt::tab_header(...)
   13.   │ └─gt:::stop_if_not_gt_tbl(data = data)
   14.   │   └─gt:::is_gt_tbl(data = data)
   15.   ├─gt::cols_label(...)
   16.   │ └─gt:::stop_if_not_gt_tbl_or_group(data = .data)
   17.   │   └─gt:::is_gt_tbl_or_group(data)
   18.   ├─gt::cols_label(...)
   19.   │ └─gt:::stop_if_not_gt_tbl_or_group(data = .data)
   20.   │   └─gt:::is_gt_tbl_or_group(data)
   21.   ├─gt::tab_options(...)
   22.   │ └─gt:::stop_if_not_gt_tbl(data = data)
   23.   │   └─gt:::is_gt_tbl(data = data)
   24.   ├─gt::fmt_percent(...)
   25.   │ └─gt:::stop_if_not_gt_tbl(data = data)
   26.   │   └─gt:::is_gt_tbl(data = data)
   27.   ├─gt::fmt_number(...)
   28.   │ └─gt:::stop_if_not_gt_tbl(data = data)
   29.   │   └─gt:::is_gt_tbl(data = data)
   30.   └─gt::gt(...)
   31.     └─cli::cli_abort(...)
   32.       └─rlang::abort(...)
  ── Error ('test-tables.R:40:3'): Table credibility-weighted termination rates warning works ──
  Error in `gt::gt(select(object, -dplyr::starts_with(".weight")), rowname_col = rowname_col, 
      ...)`: The column(s) "rowname" specified in `rowname_col` do not exist in the data.
  * Available columns are: "pol_yr", "inc_guar", "n_claims", "claims", "exposure", and "q_obs"
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test-tables.R:40: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. ├─actxps::autotable(exp_res, show_cred_adj = TRUE)
    8. └─actxps:::autotable.exp_df(exp_res, show_cred_adj = TRUE)
    9.   ├─gt::tab_source_note(...)
   10.   │ └─gt:::stop_if_not_gt_tbl(data = data)
   11.   │   └─gt:::is_gt_tbl(data = data)
   12.   ├─gt::tab_header(...)
   13.   │ └─gt:::stop_if_not_gt_tbl(data = data)
   14.   │   └─gt:::is_gt_tbl(data = data)
   15.   ├─gt::cols_label(...)
   16.   │ └─gt:::stop_if_not_gt_tbl_or_group(data = .data)
   17.   │   └─gt:::is_gt_tbl_or_group(data)
   18.   ├─gt::cols_label(...)
   19.   │ └─gt:::stop_if_not_gt_tbl_or_group(data = .data)
   20.   │   └─gt:::is_gt_tbl_or_group(data)
   21.   ├─gt::tab_options(...)
   22.   │ └─gt:::stop_if_not_gt_tbl(data = data)
   23.   │   └─gt:::is_gt_tbl(data = data)
   24.   ├─gt::fmt_percent(...)
   25.   │ └─gt:::stop_if_not_gt_tbl(data = data)
   26.   │   └─gt:::is_gt_tbl(data = data)
   27.   ├─gt::fmt_number(...)
   28.   │ └─gt:::stop_if_not_gt_tbl(data = data)
   29.   │   └─gt:::is_gt_tbl(data = data)
   30.   └─gt::gt(...)
   31.     └─cli::cli_abort(...)
   32.       └─rlang::abort(...)
  
  [ FAIL 4 | WARN 3 | SKIP 0 | PASS 302 ]
  Error: Test failures
  Execution halted