tests/testthat/test_code.R

# Tests for MethylMix Package

data(METcancer)
data(METnormal)
data(GEcancer)

results <- MethylMix(METcancer, GEcancer, METnormal)

test_that("Several tests", {
    
    expect_error(MethylMix(METcancer = METcancer, METnormal = METnormal), 
                 'Need to provide GEcancer matrix', fixed = TRUE)
    
    expect_error(MethylMix(GEcancer = GEcancer, METnormal = METnormal), 
                 'Need to provide METcancer matrix', fixed = TRUE)
})

Try the MethylMix package in your browser

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

MethylMix documentation built on Nov. 8, 2020, 11:08 p.m.