Convenience function to check integrity of multiple datasets and halt if any fail. Useful for master ingestion scripts with multiple datasets.
Usage
check_multiple_datasets(
datasets,
halt_on_first_fail = FALSE,
display_format = "DT",
stop_on_fail = !rlang::is_interactive()
)Arguments
- datasets
Named list where names are dataset labels and values are outputs from read_csv_files()
- halt_on_first_fail
Logical, stop checking after first failure (default: FALSE)
- display_format
Format for displaying changes (default: "DT")
- stop_on_fail
Logical, raise an error when any dataset fails instead of only setting knitr
eval = FALSE(default:!rlang::is_interactive(); seecheck_data_integrity()).