test_that("Single bracket subsetting works",{
expect_length(fdl[1], 1)
expect_length(fdl[names(fdl)[1]], 1)
})
test_that("Double bracket subsetting works",{
expect_true(is(fdl[[1]], "FastqcData"))
expect_true(is(fdl[[names(fdl)[1]]], "FastqcData"))
})
test_that("Subsetting out of range errors",{
expect_error(fdl[0])
expect_error(fdl[7])
expect_error(fdl["foo"])
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.