diff --git a/r/tests/testthat/test-dplyr-funcs-conditional.R b/r/tests/testthat/test-dplyr-funcs-conditional.R index e60712e9e618c..52edc25a67f5a 100644 --- a/r/tests/testthat/test-dplyr-funcs-conditional.R +++ b/r/tests/testthat/test-dplyr-funcs-conditional.R @@ -19,6 +19,8 @@ library(dplyr, warn.conflicts = FALSE) suppressPackageStartupMessages(library(bit64)) skip_if_not_available("acero") +# Skip these tests on CRAN due to build times > 10 mins +skip_on_cran() tbl <- example_data tbl$verses <- verses[[1]] diff --git a/r/tests/testthat/test-dplyr-funcs-datetime.R b/r/tests/testthat/test-dplyr-funcs-datetime.R index d59356ad659ce..bcd2584851b70 100644 --- a/r/tests/testthat/test-dplyr-funcs-datetime.R +++ b/r/tests/testthat/test-dplyr-funcs-datetime.R @@ -22,6 +22,8 @@ library(lubridate, warn.conflicts = FALSE) library(dplyr, warn.conflicts = FALSE) skip_if_not_available("acero") +# Skip these tests on CRAN due to build times > 10 mins +skip_on_cran() # base::strptime() defaults to local timezone # but arrow's strptime defaults to UTC. diff --git a/r/tests/testthat/test-dplyr-funcs-math.R b/r/tests/testthat/test-dplyr-funcs-math.R index 733a7c6ea0642..1057f7ae06eb0 100644 --- a/r/tests/testthat/test-dplyr-funcs-math.R +++ b/r/tests/testthat/test-dplyr-funcs-math.R @@ -18,6 +18,8 @@ library(dplyr, warn.conflicts = FALSE) skip_if_not_available("acero") +# Skip these tests on CRAN due to build times > 10 mins +skip_on_cran() test_that("abs()", { df <- tibble(x = c(-127, -10, -1, -0, 0, 1, 10, 127, NA)) diff --git a/r/tests/testthat/test-dplyr-funcs-string.R b/r/tests/testthat/test-dplyr-funcs-string.R index 1cebec9dddac3..411b5ae3c738a 100644 --- a/r/tests/testthat/test-dplyr-funcs-string.R +++ b/r/tests/testthat/test-dplyr-funcs-string.R @@ -17,6 +17,8 @@ skip_if_not_available("utf8proc") skip_if_not_available("acero") +# Skip these tests on CRAN due to build times > 10 mins +skip_on_cran() library(dplyr, warn.conflicts = FALSE) library(lubridate) diff --git a/r/tests/testthat/test-dplyr-funcs-type.R b/r/tests/testthat/test-dplyr-funcs-type.R index 435fa5fcb87df..2624e16156bce 100644 --- a/r/tests/testthat/test-dplyr-funcs-type.R +++ b/r/tests/testthat/test-dplyr-funcs-type.R @@ -20,6 +20,8 @@ suppressPackageStartupMessages(library(bit64)) suppressPackageStartupMessages(library(lubridate)) skip_if_not_available("acero") +# Skip these tests on CRAN due to build times > 10 mins +skip_on_cran() tbl <- example_data diff --git a/r/tests/testthat/test-dplyr-funcs.R b/r/tests/testthat/test-dplyr-funcs.R index 48b74c9af43f1..039604a85ee0c 100644 --- a/r/tests/testthat/test-dplyr-funcs.R +++ b/r/tests/testthat/test-dplyr-funcs.R @@ -15,6 +15,9 @@ # specific language governing permissions and limitations # under the License. +# Skip these tests on CRAN due to build times > 10 mins +skip_on_cran() + test_that("register_binding()/unregister_binding() works", { fake_registry <- new.env(parent = emptyenv()) fun1 <- function() NULL