test_that("makeUnique() works", {
x <- c("a", "a")
expect_warning(y <- makeUnique(x))
expect_true(! any(duplicated(y)))
expect_silent(makeUnique(x, warn = FALSE))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.