tests/testthat/test-altrep.R

test_that("Can query ptype without triggering materialization", {
  local_options(duckdb.materialize_message = TRUE)

  x <- data.frame(a = 1) %>% duckplyr_mutate(b = 2)

  expect_silent(vctrs::vec_ptype(x))

  expect_output(nrow(x))
})

Try the duckplyr package in your browser

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

duckplyr documentation built on Sept. 12, 2024, 9:36 a.m.