Skip to content

Commit

Permalink
[tests] fix broken skip_if_not_installed()
Browse files Browse the repository at this point in the history
  • Loading branch information
JanMarvin committed Jul 23, 2024
1 parent 7fcdeb3 commit cbd60f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 3 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -52,6 +52,7 @@ Imports:
zip
Suggests:
curl,
formula.tools,
knitr,
rmarkdown,
testthat
Expand Down
7 changes: 2 additions & 5 deletions tests/testthat/test-writeData.R
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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)
})

0 comments on commit cbd60f3

Please sign in to comment.