context("CSVY imports/exports")
require("datasets")
tmp <- tempfile(fileext = ".csvy")
test_that("Export to CSVY", {
suppressWarnings(expect_true(file.exists(export(iris, tmp))))
})
test_that("Import from CSVY", {
suppressWarnings(d <- import(tmp))
expect_true(inherits(d, "data.frame"))
})
unlink(tmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.