Running ‘testthat.R’ [98s/121s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(multifear)
  > 
  > test_check("multifear")
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test.output.R:20:3): bt_test_mf for groups works ─────────────────────
  Error in `fastDummies::dummy_cols(., select_columns = group, remove_first_dummy = TRUE)`: select_columns is/are not in data. Please check data and spelling.
  Backtrace:
       █
    1. ├─testthat::expect_known_output(...) test.output.R:20:2
    2. │ ├─base::append(act, eval_with_output(object, print = print, width = width))
    3. │ └─testthat:::eval_with_output(object, print = print, width = width)
    4. │   ├─withr::with_output_sink(temp, withVisible(code))
    5. │   │ └─base::force(code)
    6. │   └─base::withVisible(code)
    7. ├─multifear::bt_test_mf(cs1, cs2, subj = subj, group = group, data = example_data)
    8. │ └─multifear:::data_preparation_ttest(...)
    9. │   └─`%>%`(...)
   10. └─fastDummies::dummy_cols(., select_columns = group, remove_first_dummy = TRUE)
  ── Error (test.output.R:28:3): t_test_mf for groups works ──────────────────────
  Error in `fastDummies::dummy_cols(., select_columns = group, remove_first_dummy = TRUE)`: select_columns is/are not in data. Please check data and spelling.
  Backtrace:
       █
    1. ├─testthat::expect_known_output(...) test.output.R:28:2
    2. │ ├─base::append(act, eval_with_output(object, print = print, width = width))
    3. │ └─testthat:::eval_with_output(object, print = print, width = width)
    4. │   ├─withr::with_output_sink(temp, withVisible(code))
    5. │   │ └─base::force(code)
    6. │   └─base::withVisible(code)
    7. ├─multifear::t_test_mf(cs1, cs2, subj = subj, group = group, data = example_data)
    8. │ └─multifear:::data_preparation_ttest(...)
    9. │   └─`%>%`(...)
   10. └─fastDummies::dummy_cols(., select_columns = group, remove_first_dummy = TRUE)
  
  [ FAIL 2 | WARN 1 | SKIP 0 | PASS 15 ]
  Error: Test failures
  Execution halted