inst/unitTests/test_plotTrail.R

test_plotTrail <- function(){
  data(exSCE)
  dat <- SingleCellExperiment(assay=list(logcounts=logcounts(exSCE)))
  RUnit::checkException(plotTrail(dat, name="Tr1")) #Empty
  RUnit::checkException(plotTrail(exSCE, name="A")) #wrong input
  ggp <- plotTrail(exSCE, name=trailNames(exSCE)[1])
  RUnit::checkTrue(length(ggp$layers) > 1)
}

Try the CellTrails package in your browser

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

CellTrails documentation built on Nov. 8, 2020, 5:53 p.m.