tests/testthat/test-interactions_data.R

context('interactions_data')

data(cem)
cem0 <- new_cem()
int_df <- read.delim(system.file("extdata", "interactions.tsv", 
								          package = "CEMiTool"))

test_that('interactions_data throws an error when there are no modules', {
	expect_error(interactions_data(cem0) <- int_df)
})

Try the CEMiTool package in your browser

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

CEMiTool documentation built on March 13, 2021, 2 a.m.