tests/testthat/test-tbl-chunk.R

context("chunkwise")

source("util.R")

tbl_women <- get_tbl_women()

describe("create",{
  it("can open a file",{
    expect_true(inherits(tbl_women, "chunkwise"))
  })
  it("is equal to the original data", {
    expect_equal(tbl_women %>% collect %>% as.data.frame, women)
  })
  it("has a as.data.frame that works", {
    expect_equal(tbl_women %>% as.data.frame, women)
  })
})

Try the chunked package in your browser

Any scripts or data that you put into this service are public.

chunked documentation built on March 18, 2022, 6:04 p.m.