test_that("removeAttributes() works", {
x <- structure(1, a = 1, b = 2)
expect_null(attributes(removeAttributes(x)))
expect_identical(attributes(removeAttributes(x, "a")), list(b = 2))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.