Running ‘testthat.R’ [6s/8s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(cohortBuilder)
  
  Attaching package: 'cohortBuilder'
  
  The following objects are masked from 'package:stats':
  
      filter, step
  
  > 
  > test_check("cohortBuilder")
  Saving _problems/test-filter-63.R
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 270 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-filter.R:63:3'): Multi discrete filter works fine ──────────────
  Error in `dplyr::filter(., dplyr::across(!!names(values), ~col_in_val(.x, values[[dplyr::cur_column()]], !!keep_na)))`: i In argument: `dplyr::across(...)`.
  Caused by error:
  ! `..1` must be a logical vector, not a <tbl_df/tbl/data.frame> object.
  i If you used `across()` to generate this data frame, please use `if_any()` or `if_all()` instead.
  Backtrace:
       ▆
    1. ├─coh$run_flow() at test-filter.R:63:3
    2. │ └─self$run_step(data_idx) at cohortBuilder/R/cohort_methods.R:633:9
    3. │   └─temp_data_object %>% data_filter$filter_data() at cohortBuilder/R/cohort_methods.R:656:9
    4. ├─data_filter$filter_data(.)
    5. │ └─data_object[[dataset]] %>% ... at cohortBuilder/R/source_tblist.R:587:7
    6. ├─dplyr::filter(...)
    7. ├─dplyr:::filter.data.frame(...)
    8. │ └─dplyr:::filter_impl(...)
    9. │   └─dplyr:::filter_rows(...)
   10. │     └─dplyr:::filter_eval(...)
   11. │       ├─base::withCallingHandlers(...)
   12. │       └─mask$eval_all_filter(dots_expanded, invert, env_filter)
   13. │         └─dplyr (local) eval()
   14. ├─dplyr:::dplyr_internal_error(...)
   15. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data)
   16. │   └─rlang:::signal_abort(cnd, .file)
   17. │     └─base::signalCondition(cnd)
   18. └─dplyr (local) `<fn>`(`<dpl:::__>`)
   19.   └─rlang::abort(message, class = error_class, parent = parent, call = error_call)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 270 ]
  Error:
  ! Test failures.
  Execution halted