R/load_data.R

Defines functions load_data

load_data <- function(filename,
                      verbose = TRUE) {
    if (endsWith(tolower(filename), ".rds")) {
        dat <- load_rds(
            filename = filename,
            verbose = verbose
        )
    } else {
        dat <- load_rda(
            filename = filename,
            verbose = verbose
        )
    }
    return(dat)
}
neurogenomics/orthogene documentation built on Jan. 30, 2024, 4:44 a.m.