From 2286bda7af943f635fc2696e52fc1046e41561cd Mon Sep 17 00:00:00 2001 From: Tom Ebergen Date: Tue, 26 Sep 2023 12:07:03 +0200 Subject: [PATCH] fix skip if condition --- tests/testthat/test_strings.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testthat/test_strings.R b/tests/testthat/test_strings.R index 8029679c7..4d0fe27f2 100644 --- a/tests/testthat/test_strings.R +++ b/tests/testthat/test_strings.R @@ -1,8 +1,8 @@ library(duckdb) test_that("Invalid unicode produces an error", { - # this doesn't throw an error on previous versions of R - skip_if_no_R4() + # this doesn't throw an error on old releases of R. + skip_if(R.Version()$major <= 4 && R.Version()$minor <= 2.3) con <- DBI::dbConnect(duckdb::duckdb()) my_df <- structure(list(no_municipio_esc = "Est\xe2ncia", no_municipio_prova = "Est\xe2ncia"), row.names = 16L, class = "data.frame")