Running examples in ‘cardx-Ex.R’ failed
The error most likely occurred in:

> ### Name: ard_missing.survey.design
> ### Title: ARD Missing Survey Statistics
> ### Aliases: ard_missing.survey.design
> 
> ### ** Examples
> 
> ## Don't show: 
> if (cardx:::is_pkg_installed("survey")) withAutoprint({ # examplesIf
+ ## End(Don't show)
+ svy_titanic <- survey::svydesign(~1, data = as.data.frame(Titanic), weights = ~Freq)
+ 
+ ard_missing(svy_titanic, variables = c(Class, Age), by = Survived)
+ ## Don't show: 
+ }) # examplesIf
> svy_titanic <- survey::svydesign(~1, data = as.data.frame(Titanic), weights = ~Freq)
> ard_missing(svy_titanic, variables = c(Class, Age), by = Survived)
Error in `ard_missing()`:
! The following columns are not present: "warning" and "error".
Backtrace:
     ▆
  1. ├─base::withAutoprint(...)
  2. │ └─base::source(...)
  3. │   ├─base::withVisible(eval(ei, envir))
  4. │   └─base::eval(ei, envir)
  5. │     └─base::eval(ei, envir)
  6. ├─cards::ard_missing(svy_titanic, variables = c(Class, Age), by = Survived)
  7. └─cardx:::ard_missing.survey.design(svy_titanic, variables = c(Class, Age), by = Survived)
  8.   ├─dplyr::mutate(...)
  9.   ├─cards::ard_tabulate(...)
 10.   └─cardx:::ard_tabulate.survey.design(...)
 11.     ├─cards::tidy_ard_row_order(...)
 12.     │ └─dplyr::select(x, all_ard_groups(c("names", "levels")))
 13.     ├─cards::tidy_ard_column_order(...)
 14.     │ ├─dplyr::pull(...)
 15.     │ ├─dplyr::arrange(...)
 16.     │ ├─base::data.frame(colname = names(dplyr::select(x, all_ard_groups())))
 17.     │ └─dplyr::select(x, all_ard_groups())
 18.     ├─cards::as_card(...)
 19.     │ └─cards:::check_class(x, cls = "data.frame")
 20.     ├─dplyr::mutate(...)
 21.     └─cardx:::.restore_original_column_types(cards, data = data$variables)
 22.       └─cards::as_card(...)
 23.         └─cards::check_ard_structure(...)
 24.           └─cards:::.message_or_error(...)
 25.             └─cli::cli_abort(msg, call = call, .envir = envir)
 26.               └─rlang::abort(...)
Execution halted