context("check_match")
test_that("checks import that exists in dataframe", {
out <- check_match(mtcars, hp == 110)
expect_equal(out, TRUE)
})
test_that("checks import that does not exist in dataframe", {
out <- check_match(mtcars, carb == 0)
expect_equal(out, FALSE)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.