testthat::test_that("Test chromosome",{
bamfile <- system.file("extdata", "ex1.bam", package="Rsamtools",
mustWork=TRUE)
testthat::expect_equal(as.numeric(chromosome(bamfile,'count')[1]),1501)
testthat::expect_equal(round(as.numeric(chromosome(bamfile,'rate')[1]),3),0.454)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.