testthat::context("test value check functions")
testthat::test_that("is_empty", {
vec <- c("not empty", "", " ", NA)
ret <- is_empty(vec)
expect_equal(ret, c(FALSE, TRUE, TRUE, TRUE))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.