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

Quitting from Introduction_to_eHDPrep.Rmd:245-252 [unnamed-chunk-14]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `dplyr::summarise()`:
i In argument: `dplyr::across(everything(), ~!.x %in% ord_levels)`.
Caused by error:
! `dplyr::across(everything(), ~!.x %in% ord_levels)` must be size 1,
  not 1000.
i To return more or less than 1 row per group, use `reframe()`.
---
Backtrace:
     x
  1. +-eHDPrep::apply_quality_ctrl(...)
  2. | \-... %>% suppressWarnings()
  3. +-base::suppressWarnings(.)
  4. | \-base::withCallingHandlers(...)
  5. +-eHDPrep::encode_cats(...)
  6. | \-dplyr::select(data, !!!dplyr::enquos(...))
  7. +-base::suppressMessages(.)
  8. | \-base::withCallingHandlers(...)
  9. +-eHDPrep::encode_genotypes(...)
 10. | \-data %>% ...
 11. +-dplyr::mutate(., dplyr::across(c(!!!vars), encode_genotype_vec))
 12. +-eHDPrep::encode_ordinals(...)
 13. | \-... %>% dplyr::filter(.data$value > 0)
 14. +-dplyr::filter(., .data$value > 0)
 15. +-tidyr::pivot_longer(., dplyr::everything())
 16. +-dplyr::summarise(., dplyr::across(c(!!!vars), sum))
 17. +-dplyr::summarise(., dplyr::across(everything(), ~!.x %in% ord_levels))
 18. +-dplyr::select(., !!!vars)
 19. +-eHDPrep::encode_ordinals(...)
 20. | \-... %>% dplyr::filter(.data$value > 0)
 21. +-dplyr::filter(., .data$value > 0)
 22. +-tidyr::pivot_longer(., dplyr::everything())
 23. +-dplyr::summarise(., dplyr::across(c(!!!vars), sum))
 24. +-dplyr::summarise(., dplyr::across(everything(), ~!.x %in% ord_levels))
 25. +-dplyr:::summarise.data.frame(., dplyr::across(everything(), ~!.x %in% ord_levels))
 26. | \-dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise")
 27. |   \-base::withCallingHandlers(...)
 28. \-dplyr:::dplyr_internal_error(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Error: processing vignette 'Introduction_to_eHDPrep.Rmd' failed with diagnostics:
ℹ In argument: `dplyr::across(everything(), ~!.x %in% ord_levels)`.
Caused by error:
! `dplyr::across(everything(), ~!.x %in% ord_levels)` must be size 1,
  not 1000.
ℹ To return more or less than 1 row per group, use `reframe()`.
--- failed re-building ‘Introduction_to_eHDPrep.Rmd’

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

Error: Vignette re-building failed.
Execution halted