context("Export to SQLite")
test_that("Export", {
expect_true(export(mtcars, "example.sqlite", table = "mtcars") %in% dir())
})
context("Import from SQLite")
test_that("Import", {
expect_true(is.data.frame(import("example.sqlite", table = "mtcars")))
})
unlink("example.sqlite")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.