tests/testthat/test-geneXtender.R

context(".geneXtender checker") #hidden method

fpath <- system.file("extdata", "somepeaksfile.txt", package="geneXtendeR")
peaksInput(fpath)

test_that("test dimensions and make sure it works", {
  expect_equal(dim(.geneXtender(2500, rat, TRUE)), c(32402, 5))
})

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.