context("test-sample_n")
setup({
a = data.frame(a = 1:100, b = 1:100)
as.disk.frame(a, file.path(tempdir(), "tmp_sample_n.df"), nchunks = 5, overwrite = T)
})
test_that("testing semi_join where right is data.frame", {
a = disk.frame(file.path(tempdir(), "tmp_sample_n.df"))
expect_error(a40 <- sample_n(a, 40) %>% collect)
})
teardown({
fs::dir_delete(file.path(tempdir(), "tmp_sample_n.df"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.