Nothing
test_that("compact() removes NULL elements", {
x <- list(a = 1, b = NULL, c = "x")
expect_equal(compact(x), list(a = 1, c = "x"))
})
test_that("compact() returns empty list for all NULLs", {
x <- list(a = NULL, b = NULL)
expect_length(compact(x), 0)
})
test_that("compact() preserves non-NULL values", {
x <- list(a = 1, b = 2)
expect_equal(compact(x), list(a = 1, b = 2))
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.