From 532ab464db39da0e6b03e4b046355e7bf499730a Mon Sep 17 00:00:00 2001 From: Nic Crane Date: Wed, 4 Oct 2023 11:00:50 +0100 Subject: [PATCH] MINOR: [R] Skip tests which use with_language() on CRAN (#37810) ### Rationale for this change Tests which use `with_language()` are failing on CRAN ### What changes are included in this PR? Skip those tests on CRAN for now until we find the source of the problem ### Are these changes tested? No ### Are there any user-facing changes? No Authored-by: Nic Crane Signed-off-by: Nic Crane --- r/tests/testthat/helper-arrow.R | 1 + 1 file changed, 1 insertion(+) diff --git a/r/tests/testthat/helper-arrow.R b/r/tests/testthat/helper-arrow.R index 6812a3eec0a4e..8d39f7252ee21 100644 --- a/r/tests/testthat/helper-arrow.R +++ b/r/tests/testthat/helper-arrow.R @@ -34,6 +34,7 @@ Sys.setenv(LANGUAGE = "en") options(arrow.pull_as_vector = FALSE) with_language <- function(lang, expr) { + skip_on_cran() old <- Sys.getenv("LANGUAGE") # Check what this message is before changing languages; this will # trigger caching the transations if the OS does that (some do).