Skip to content

Commit 018ce65

Browse files
Use skip_if_not_installed() to get better skip message
1 parent 96d8a1f commit 018ce65

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/testthat/test_print_Appender.R

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ context("print_Appender")
44

55

66
test_that("all Appenders print() without failure", {
7-
if (!requireNamespace("rotor")){
8-
skip("Required packages not installed")
9-
}
7+
skip_if_not_installed("rotor")
108

119
tf <- tempfile()
1210
on.exit(unlink(tf))

0 commit comments

Comments
 (0)