Error(s) in re-building vignettes:
--- re-building ‘batchtma.Rmd’ using rmarkdown

Quitting from batchtma.Rmd:115-120 [unnamed-chunk-10]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/purrr_error_indexed>
Error in `purrr::map()`:
ℹ In index: 1.
Caused by error in `dplyr::filter()`:
ℹ In argument: `dplyr::across(dplyr::all_of(confounders), ~!is.na(.x))`.
Caused by error:
! `..1` must be a logical vector, not a <tbl_df/tbl/data.frame> object.
ℹ If you used `across()` to generate this data frame, please use `if_any()` or
  `if_all()` instead.
---
Backtrace:
     ▆
  1. ├─... %>% ...
  2. ├─batchtma::plot_batch(...)
  3. │ ├─dplyr::n_distinct(...)
  4. │ │ └─vctrs::df_list(...)
  5. │ │   └─rlang::list2(...)
  6. │ └─dplyr::select(...)
  7. ├─batchtma::adjust_batch(...)
  8. │ └─batchtma:::batchmean_ipw(...)
  9. │   ├─purrr::map(...)
 10. │   │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
 11. │   │   ├─purrr:::with_indexed_errors(...)
 12. │   │   │ └─base::withCallingHandlers(...)
 13. │   │   ├─purrr:::call_with_cleanup(...)
 14. │   │   └─batchtma (local) .f(.x[[i]], ...)
 15. │   │     └─... %>% ...
 16. │   └─data %>% ...
 17. ├─dplyr::mutate(., .batchvar = factor_drop(.data$.batchvar))
 18. ├─dplyr::filter(., !is.na(.data$variable))
 19. ├─dplyr::rename(., variable = dplyr::one_of(variable))
 20. ├─dplyr::filter(., dplyr::across(dplyr::all_of(confounders), ~!is.na(.x)))
 21. ├─dplyr:::filter.data.frame(., dplyr::across(dplyr::all_of(confounders), ~!is.na(.x)))
 22. │ └─dplyr:::filter_impl(...)
 23. │   └─dplyr:::filter_rows(...)
 24. │     └─dplyr:::filter_eval(...)
 25. │       ├─base::withCallingHandlers(...)
 26. │       └─mask$eval_all_filter(dots_expanded, invert, env_filter)
 27. │         └─dplyr (local) eval()
 28. └─dplyr:::dplyr_internal_error(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'batchtma.Rmd' failed with diagnostics:
ℹ In index: 1.
Caused by error in `dplyr::filter()`:
ℹ In argument: `dplyr::across(dplyr::all_of(confounders), ~!is.na(.x))`.
Caused by error:
! `..1` must be a logical vector, not a <tbl_df/tbl/data.frame> object.
ℹ If you used `across()` to generate this data frame, please use `if_any()` or
  `if_all()` instead.
--- failed re-building ‘batchtma.Rmd’

SUMMARY: processing the following file failed:
  ‘batchtma.Rmd’

Error: Vignette re-building failed.
Execution halted