test_that("write_csv() works", {
f <- write_csv
expect_error(f())
f(data.frame(a = 1), tempfile(), version = 1)
f(data.frame(a = 1), tempfile(), version = 2)
expect_error(f(data.frame(a = 1), tempfile(), version = 3))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.