test_that("data.table is created with row names", {
expect_s3_class(dt_keeprownames(data1), "data.table")
expect_identical(dt_keeprownames(data1),
data.table::data.table(rn=rownames(data1),data1))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.