From c05bbf5b2ca5d5e05b5ceacafbeb489a27a10bd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Wed, 11 Oct 2023 23:23:26 +0200 Subject: [PATCH] dplyr -> dbplyr --- tests/testthat/test_arrow_stream.R | 2 +- tests/testthat/test_tbl__duckdb_connection.R | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/testthat/test_arrow_stream.R b/tests/testthat/test_arrow_stream.R index 6b5b27764..966a7c3b4 100644 --- a/tests/testthat/test_arrow_stream.R +++ b/tests/testthat/test_arrow_stream.R @@ -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") diff --git a/tests/testthat/test_tbl__duckdb_connection.R b/tests/testthat/test_tbl__duckdb_connection.R index 6639a9b38..3b3fbea01 100644 --- a/tests/testthat/test_tbl__duckdb_connection.R +++ b/tests/testthat/test_tbl__duckdb_connection.R @@ -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)) @@ -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)) @@ -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) @@ -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)) @@ -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))