test_that("sbf_write_datas_to_xlsx", {
path <- withr::local_tempfile(fileext = ".xlsx")
expect_false(file.exists(path))
expect_warning(sbf_write_datas_to_xlsx(path))
expect_false(file.exists(path))
mtcars2 <- data.frame(x = 1)
expect_identical(sbf_write_datas_to_xlsx(path), "mtcars2")
expect_true(file.exists(path))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.