context("test-vis_numerics")
test_that("vis_numerics works", {
data(iris)
# Test if there are numeric variables
ggplist <- vis_numerics(iris)
expect_is(ggplist, class = "list")
# Test if there is not numeric variable
expect_error(vis_numerics(iris["Species"]),
"There should be numerical columns in .data")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.