tests/testthat/test-peaksInput.R

context("peaks-input checker")

test_that("peaksInput inputs and null", {
  fpath <- system.file("extdata", "somepeaksfile.txt", package="geneXtendeR")
  peaksInput(fpath)
  
  expect_error(peaksInput(''))
  expect_true(file.exists("peaks.txt"))
  file.remove("peaks.txt")
})

if (file.exists("peaks.txt")) {
  file.remove("peaks.txt")
}

Try the geneXtendeR package in your browser

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

geneXtendeR documentation built on Nov. 8, 2020, 11:09 p.m.