Skip to content

Commit 031bc26

Browse files
authored
Merge pull request #73 from MichaelChirico/patch-3
Use skip_if_not_installed() to get better skip message
2 parents 96d8a1f + 018ce65 commit 031bc26

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)