tests/testthat/test_io.R

context("Test io function")

# setup GRanges
gtf <- system.file("extdata", "sc_merged_sample.gtf.gz", package = "factR")
gtf <- factR::importGTF(gtf)


test_that("Test import functionality", {
  expect_true(is_gtf(gtf))
  expect_equal(length(gtf), 8117)
  expect_error(factR::importGTF("fake.gtf"))
})
fursham-h/factR documentation built on Aug. 20, 2023, 1:58 p.m.