tests/testthat/tests.r

#should be a data frame, so expected an error
expect_error(RegionsInfoPlot(matrix(0,2,2)))

#group should be one of "Sample" or ""Chromosome"
expect_error(RegionsInfoPlot(data.frame(a = c(1:2),b=c(3:4)), group = "GROUP"))


#statistics should be one of "Mean" or ""Median"
expect_error(RegionsInfoPlot(data.frame(a = c(1:2),b=c(3:4)), group = "Sample" , statistic = "Max"))
yiqiutang/genomeRegionsInfo documentation built on May 14, 2019, 4:04 a.m.