context("duplicated2")
test_that("duplicated2 flag all the duplicates by default", {
expect_identical(duplicated2(c(0, 1, 1, 2, 2, NA, NA)),
c(FALSE, rep(TRUE, 6)))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.