test_that("Empty matrix can be coerced to a data frame (#7004)", {
skip_if_not(getRversion() >= "4.4")
expect_equal(
slice(as.data.frame(matrix(nrow = 0, ncol = 0)), 1),
data.frame()
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.