From cbd60f34f94b991c4e7719b65deb958409ac7d38 Mon Sep 17 00:00:00 2001 From: Jan Marvin Garbuszus Date: Tue, 23 Jul 2024 18:19:31 +0200 Subject: [PATCH] [tests] fix broken skip_if_not_installed() --- DESCRIPTION | 5 +++-- tests/testthat/test-writeData.R | 7 ++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 3dd4b5a9..af1ae039 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,8 +1,8 @@ Type: Package Package: openxlsx Title: Read, Write and Edit xlsx Files -Version: 4.2.6 -Date: 2024-07-20 +Version: 4.2.6.1 +Date: 2024-07-23 Authors@R: c(person(given = "Philipp", family = "Schauberger", @@ -52,6 +52,7 @@ Imports: zip Suggests: curl, + formula.tools, knitr, rmarkdown, testthat diff --git a/tests/testthat/test-writeData.R b/tests/testthat/test-writeData.R index a97333c0..43b3dadc 100644 --- a/tests/testthat/test-writeData.R +++ b/tests/testthat/test-writeData.R @@ -44,10 +44,8 @@ test_that("as.character.formula() works [312]", { openxlsx:::as.character.formula(form) ) - skip_if_not_installed( - "formula.tools", - "tests specifically for as.character.formula conflict" - ) + skip_if_not_installed("formula.tools") + # "tests specifically for as.character.formula conflict" foo <- function() { wb <- openxlsx::buildWorkbook( @@ -69,4 +67,3 @@ test_that("as.character.formula() works [312]", { expect_identical(before, middle, ignore.environment = TRUE) expect_identical(before, end, ignore.environment = TRUE) }) -