context("Checking unique_by")
test_that("unique_by gives the desired output",{
x <- with(DATA, unique_by(state, person))
expect_true(is.list(x))
expect_false(is.data.frame(x))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.