Skip to content

Commit

Permalink
Skip test if withr is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborcsardi committed Mar 22, 2024
1 parent dffb548 commit 701a98c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/testthat/test-rcmd.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ test_that("rcmd show works", {
})

test_that("rcmd echo works", {
skip_if_not_installed("withr")
withr::local_options(width = 500)
expect_output(rcmd("config", "CC", echo = TRUE), "config\\s+CC")
gc()
Expand Down

0 comments on commit 701a98c

Please sign in to comment.