Skip to content

Commit

Permalink
Merge pull request #73 from MichaelChirico/patch-3
Browse files Browse the repository at this point in the history
Use skip_if_not_installed() to get better skip message
  • Loading branch information
s-fleck authored Nov 27, 2024
2 parents 96d8a1f + 018ce65 commit 031bc26
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/testthat/test_print_Appender.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ context("print_Appender")


test_that("all Appenders print() without failure", {
if (!requireNamespace("rotor")){
skip("Required packages not installed")
}
skip_if_not_installed("rotor")

tf <- tempfile()
on.exit(unlink(tf))
Expand Down

0 comments on commit 031bc26

Please sign in to comment.