context("test-scan_groups")
test_that("scan-groups works", {
data(iris)
# Test if there are numeric variables
res <- scan_groups(iris)
expect_is(res, class = "data.frame")
# Test if there is not numeric variable
expect_error(scan_groups(iris[1:4]),
"There should be categorical column in .data")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.