This function will examine a list of tables to make sure it's consistent with the structure required for scrattch applications.

check_list_structure(list_data, verbose = T)

Arguments

list_data

- a list object that contains data, anno, and desc tables.

verbose

a logical value indicating if errors should be displayed. If set to FALSE, all messages will be suppressed.

Value

A logical value indicating if the list data passes all required checks.

Examples

dataset_list <- list(data = v1_data, anno = v1_anno, desc = v1_desc)
#> Error: object 'v1_data' not found

check_list_structure(dataset_list)
#> Error in check_list_structure(dataset_list): object 'dataset_list' not found

check_db_structure(dataset_list,verbose=F)
#> Error in stopifnot(length(dbname) == 1, !is.na(dbname)): object 'dataset_list' not found