Skip to content

Commit

Permalink
dplyr -> dbplyr
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Oct 11, 2023
1 parent 155d02c commit c05bbf5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/test_arrow_stream.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
skip_on_cran()
skip_on_os("windows")
skip_if_not_installed("arrow", "5.0.0")
skip_if_not_installed("dplyr")
skip_if_not_installed("dbplyr")

library("testthat")
library("DBI")
Expand Down
12 changes: 6 additions & 6 deletions tests/testthat/test_tbl__duckdb_connection.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
skip_on_cran()
if (rlang::is_installed("dplyr")) {
if (rlang::is_installed("dbplyr")) {
`%>%` <- dplyr::`%>%`
}

test_that("Parquet files can be registered with dplyr::tbl()", {
skip_if_not_installed("dplyr")
skip_if_not_installed("dbplyr")

con <- DBI::dbConnect(duckdb())
on.exit(DBI::dbDisconnect(con, shutdown = TRUE))
Expand All @@ -28,7 +28,7 @@ test_that("Parquet files can be registered with dplyr::tbl()", {


test_that("Object cache can be enabled for parquet files with dplyr::tbl()", {
skip_if_not_installed("dplyr")
skip_if_not_installed("dbplyr")

con <- DBI::dbConnect(duckdb())
on.exit(DBI::dbDisconnect(con, shutdown = TRUE))
Expand All @@ -44,7 +44,7 @@ test_that("Object cache can be enabled for parquet files with dplyr::tbl()", {


test_that("CSV files can be registered with dplyr::tbl()", {
skip_if_not_installed("dplyr")
skip_if_not_installed("dbplyr")

path <- file.path(tempdir(), "duckdbtest.csv")
write.csv(iris, file = path)
Expand All @@ -63,7 +63,7 @@ test_that("CSV files can be registered with dplyr::tbl()", {
})

test_that("Other replacement scans or functions can be registered with dplyr::tbl()", {
skip_if_not_installed("dplyr")
skip_if_not_installed("dbplyr")

con <- DBI::dbConnect(duckdb())
on.exit(DBI::dbDisconnect(con, shutdown = TRUE))
Expand All @@ -74,7 +74,7 @@ test_that("Other replacement scans or functions can be registered with dplyr::tb
})

test_that("Strings tagged as SQL will be handled correctly with dplyr::tbl()", {
skip_if_not_installed("dplyr")
skip_if_not_installed("dbplyr")

con <- DBI::dbConnect(duckdb())
on.exit(DBI::dbDisconnect(con, shutdown = TRUE))
Expand Down

0 comments on commit c05bbf5

Please sign in to comment.