test_that("shuffle works", {
expect_snapshot(error = TRUE, shuffle(matrix(NA, 2, 2)))
expect_length(shuffle(1:10), 10L)
expect_identical(sort(shuffle(1:10)), 1:10)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.