context("biocPkgList")
library(BiocPkgTools)
bpkgl = biocPkgList()
test_that("pkg list has correct classes", {
expect_is(bpkgl, 'tbl_df')
expect_is(bpkgl, 'tbl')
expect_is(bpkgl, 'data.frame')
})
test_that("ncol is approximately correct", {
expect_gt(ncol(bpkgl), 35)
})
test_that("nrow is approximately correct", {
expect_gt(nrow(bpkgl), 1000)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.