tests/testthat/test-deprec-dbi.R

test_that("src_sqlite() gives meaningful error messages", {
  skip_if_not_installed("dbplyr")
  withr::local_options(lifecycle_verbosity = "quiet")

  expect_snapshot({
    (expect_error(src_sqlite(":memory:")))
  })
})

Try the dplyr package in your browser

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

dplyr documentation built on Nov. 17, 2023, 5:08 p.m.