Running 'testthat.R' [71s]
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(postcard)
  > 
  > test_check("postcard")
  Saving _problems/test-rctglm_methods-66.R
  [ FAIL 1 | WARN 0 | SKIP 27 | PASS 159 ]
  
  ══ Skipped tests (27) ══════════════════════════════════════════════════════════
  • On CRAN (27): 'test-create_example_data.R:65:1',
    'test-fit_best_learner.R:113:1', 'test-fit_best_learner.R:113:1',
    'test-fit_best_learner.R:113:1', 'test-fit_best_learner.R:113:1',
    'test-influence_function_utils.R:2:1',
    'test-influence_function_utils.R:26:1', 'test-power-linear.R:1:1',
    'test-power_marginaleffect.R:1:1', 'test-rctglm.R:1:1',
    'test-rctglm.R:217:1', 'test-rctglm_methods.R:27:1',
    'test-rctglm_prog_methods.R:1:1', 'test-rctglm_utils.R:111:1',
    'test-rctglm_utils.R:134:1', 'test-rctglm_with_prognosticscore.R:1:1',
    'test-repeat_power_plot.R:9:1', 'test-repeat_power_plot.R:46:1',
    'test-utils.R:16:1', 'test-utils.R:51:1', 'test-utils.R:51:1',
    'test-utils.R:51:1', 'test-utils.R:51:1', 'test-utils.R:150:1',
    'test-utils.R:150:1', 'test-utils.R:150:1', 'test-utils.R:150:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-rctglm_methods.R:61:3'): `print` method works ──────────────────
  Error in `check_exposure_indicator(data = data, exposure_indicator_name = exposure_indicator_name)`: `exposure_indicator` column can only have 1's and 0's
  Backtrace:
      ▆
   1. └─postcard::rctglm(...) at test-rctglm_methods.R:61:3
   2.   └─postcard:::check_exposure_indicator(data = data, exposure_indicator_name = exposure_indicator_name)
   3.     └─cli::cli_abort("{.var exposure_indicator} column can only have 1's and 0's")
   4.       └─rlang::abort(...)
  
  [ FAIL 1 | WARN 0 | SKIP 27 | PASS 159 ]
  Error:
  ! Test failures.
  Execution halted