From 2dffed69a15b730ba14ea9172e7b595ed2bc7472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Cs=C3=A1rdi?= Date: Fri, 9 Feb 2024 08:25:24 -0600 Subject: [PATCH] Fix tests on R-devel --- tests/testthat/setup.R | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/testthat/setup.R b/tests/testthat/setup.R index 71f2ea14..82ef1084 100644 --- a/tests/testthat/setup.R +++ b/tests/testthat/setup.R @@ -6,3 +6,11 @@ withr::local_envvar( PKG_SYSREQS = "false", .local_envir = teardown_env() ) + +# until the r -> bioc mapping is final for R 4.4.0 +if (getRversion() >= "4.4.0") { + withr::local_envvar( + R_BIOC_VERSION = "3.17", + .local_envir = teardown_env() + ) +}