tests/testthat/test-overwrite.R

test_that("methods_overwrite() works", {
  methods_overwrite()
  on.exit(methods_restore())

  out <-
    data.frame(a = 1) %>%
    mutate(b = 2)

  expect_false(duckdb$df_is_materialized(out))
})

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.