test_that("shuffle column retains other elements of dataframe", {
j <- 1
shuffled <- shuffle_column(mtcars, j)
expect_equal(mtcars[, -j], shuffled[, -j])
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.