tests/testthat/test-mdp-2.R

context("correct output for mdp function")



data(example_data)
data(example_pheno)

file_address <- system.file("extdata", "ReactomePathways.gmt", package = "mdp")
pathways <- fgsea::gmtPathways(file_address)

test_that("list of correct size is returned",{
    
    output <- mdp(data=example_data,pdata=example_pheno,control_lab="baseline")
    expect_that(length(output),equals(5))  
    
    output <- mdp(data=example_data,pdata=example_pheno,control_lab="baseline",pathways=pathways)
    expect_that(length(output),equals(6))  

})    
    
   

Try the mdp package in your browser

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

mdp documentation built on Nov. 8, 2020, 7:51 p.m.