tests/testthat/test-lazy-select-query.R

test_that("can print lazy_select_query", {
  expect_snapshot(
    lazy_select_query(
      x = lazy_query_local(tibble(x = 1, y = 2), "df"),
      select = quos(
        x_mean = mean(x),
        y2 = y
      ),
      where = quos(y > 1, x == y - 2),
      group_by = quos("x")
    )
  )
})

Try the dbplyr package in your browser

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

dbplyr documentation built on Oct. 26, 2023, 9:06 a.m.