context("problemPage")
library(BiocPkgTools)
ppage = problemPage(includeOK = TRUE)
ppage2 = problemPage(includeOK = FALSE)
test_that("problempage is a datatable", {
expect_is(ppage, 'datatables')
expect_is(ppage, 'htmlwidget')
})
test_that("data is at least close to correct", {
expect_gt(nrow(ppage$x$data), 0)
expect_gte(nrow(ppage$x$data), nrow(ppage2$x$data))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.