context("test-nchunks")
setup({
b = data.frame(a = 51:150, b = 1:100)
as.disk.frame(b, file.path(tempdir(), "tmp_chunks.df"), nchunks = 5, overwrite = T)
})
test_that("testing nchunks", {
b = disk.frame(file.path(tempdir(), "tmp_chunks.df"))
expect_equal(nchunks(b), 5)
expect_equal(nchunk(b), 5)
})
teardown({
fs::dir_delete(file.path(tempdir(), "tmp_chunks.df"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.