tests/testthat/test_readHTSeqFile.R

library(GenomicDataCommons)
context('readHTSeqFile')

test_that("readHTSeqFile works on example data", {
    dat = readHTSeqFile(system.file(package="GenomicDataCommons",
                                    'extdata/example.htseq.counts.gz'))
    expect_equal(nrow(dat),50)
    expect_equal(ncol(dat),2)
})

Try the GenomicDataCommons package in your browser

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

GenomicDataCommons documentation built on Nov. 8, 2020, 11:08 p.m.