This function runs all checks in the sdtmchecks package. It expects SDTM domains saved as dataframe objects in your global environment. These dataframes should have lowercase names, e.g., dm.

run_all_checks(
  metads = sdtmchecksmeta,
  priority = c("High", "Medium", "Low"),
  type = c("ALL", "ONC", "COVID", "PRO", "OPHTH"),
  verbose = TRUE,
  ncores = 1
)

Arguments

metads

Metadata to use to execute the checks. The default is the sdtmchecksmeta dataframe available in the package. This object could easily be customized, subset, etc.

priority

Priority level of data checks, i.e., c("High", "Medium", "Low"). NULL runs all priority levels.

type

Type of data checks, i.e., c("ALL", "ONC", "COV", "PRO", "OPHTH"). NULL runs all type.

verbose

Whether to display messages while running

ncores

Number of cores for parallel processing, with default set to 1 (sequential)

Value

list with results from individual data check functions

Details

To look up documentation for the data checks in package, please use command ??sdtmchecks

See also

Example programs for running data checks diff_reports(), report_to_xlsx(), run_check()

Examples


if (FALSE) {

# Assuming sdtm datasets are in your global environment
all_rec<-run_all_checks(metads=sdtmchecksmeta, 
                        priority=c("High","Medium","Low"), 
                        type=c("ALL", "ONC", "COVID", "PRO"))
all_rec<-run_all_checks(metads=sdtmchecksmeta, 
                        priority=NULL, 
                        type=c("ONC", "COVID", "PRO"))
}