This function will examine a SQLite3 database to make sure it's consistent with the structure required for my Shiny applications.

check_feather_structure(feather_dir, verbose = T)

Arguments

feather_dir

a character object that gives the file location of a feather dataset.

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 database passes all required checks.

Examples

database_file <- "//AIBSData2/mct-t200/ShinyApps/linnarsson/linnarsson2.db"

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

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