test_that("column exists", {
expect_true(col_exists(iris,'Species'))
})
test_that("column doesn't exist", {
expect_false(col_exists(iris,'test me'))
})
test_that("column doesn't exist", {
expect_false(col_exists(iris,c('test me','Species')))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.