test_that("hasDimnames", {
skip_if_not_installed("datasets")
for (fun in list(
hasDimnames,
hasRownames,
hasColnames
)) {
x <- datasets::mtcars
expect_true(fun(x))
x <- data.frame()
ok <- fun(x)
expect_false(ok)
expect_s4_class(ok, "goalie")
}
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.