tests/testthat/testProcessors.R

test_that('processor file writing',{
    file = tempfile()
    get_platforms_by_ids(1,file = file)

    expect_warning(get_platforms_by_ids(1,file = file),'exists. Not overwriting')

    file = tempfile()
    gemma.R::get_dataset_processed_expression(dataset = 'GSE2018', file = file)
    expect_true(file.exists(paste0(file)))

    file = tempfile()
    gemma.R::get_dataset_processed_expression(dataset = 'GSE2018', file = file, raw = TRUE)
    expect_true(file.exists(paste0(file)))


    file = tempfile()
    gemma.R::get_dataset_processed_expression(dataset = 'GSE2018', file = file, raw = FALSE)
    expect_true(file.exists(paste0(file)))


})
PavlidisLab/Gemma-API documentation built on Oct. 25, 2024, 10:25 a.m.