From 2e7c7ef3d37178f727f8ce9c32c05d1041b30899 Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Fri, 14 Jun 2024 09:31:25 -0700 Subject: [PATCH] Skip test requiring recent dbplyr (#616) `sql_runif()` was only added in 2.4.0: https://github.com/tidyverse/dbplyr/blob/860bd6adf988a2b039485030d234eba05ee46a3c/NEWS.md?plain=1#L199 --- tests/testthat/test-dplyr.R | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/testthat/test-dplyr.R b/tests/testthat/test-dplyr.R index 05bddead..c78bcbaf 100644 --- a/tests/testthat/test-dplyr.R +++ b/tests/testthat/test-dplyr.R @@ -174,6 +174,7 @@ test_that("all BigQuery tbls share the same src", { }) test_that("runif is correctly translated", { + skip_if_not_installed("dbplyr", "2.4.0") expect_equal( dbplyr::translate_sql(runif(n()), con = simulate_bigrquery()), dbplyr::sql("RAND()")