tests/testthat/test-import.R

test_that("import data", {
    example_xlsx <- system.file("extdata/expdb_example.xlsx", package = "expDB")
    db_file <- tempfile(fileext = ".db")
    con <- expdbCreateDB(db_file)
    dbImportXLSX(con, example_xlsx, tz = "Australia/Brisbane", 
                 ignore_genotype = FALSE, ignore_trait = FALSE)    
})

Try the expDB package in your browser

Any scripts or data that you put into this service are public.

expDB documentation built on Oct. 9, 2021, 1:07 a.m.