Skip to content

Commit dd169c6

Browse files
committed
Unset QUARTO_R_QUIET in test that are impacted by it
1 parent 92e6efc commit dd169c6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/testthat/test-quarto-args.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ test_that("create quiete arg", {
2424
})
2525

2626
test_that("quarto.quiet options takes over", {
27+
withr::local_envvar(list(QUARTO_R_QUIET = NA))
2728
expect_identical(is_quiet(TRUE), TRUE)
2829
expect_identical(is_quiet(FALSE), FALSE)
2930
expect_identical(is_quiet(NA), FALSE)
@@ -63,6 +64,7 @@ test_that("R_QUARTO_QUIET options takes over", {
6364
})
6465

6566
test_that("quarto.quiet options takes over R_QUARTO_QUIET", {
67+
withr::local_envvar(list(R_QUARTO_QUIET = NA))
6668
withr::with_options(list(quarto.quiet = TRUE), {
6769
withr::with_envvar(list(R_QUARTO_QUIET = FALSE), {
6870
expect_identical(is_quiet(TRUE), TRUE)

0 commit comments

Comments
 (0)