tests/testthat/test_plot_functions.R

test_that("plotHistogram throws expected error when fed data containing zero counts",{
  expect_error(plotHistogram(diplostomum_lenses),"Data contains zero counts!")
})

test_that("plotVolcano throws expected error when fed data containing zero counts",{
  expect_error(plotVolcano(diplostomum_lenses),"Data contains zero counts!")
})

Try the aspi package in your browser

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

aspi documentation built on May 2, 2019, 5:08 a.m.