We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e929d5a commit 1b5d172Copy full SHA for 1b5d172
R/quarto.R
@@ -159,6 +159,11 @@ quarto_run <- function(
159
custom_env <- c("current", custom_env)
160
}
161
162
+ # Special case for tests to force hiding echo
163
+ if (is_testing() && getOption("quarto.tests.hide_echo", FALSE)) {
164
+ echo <- FALSE
165
+ }
166
+
167
res <- withCallingHandlers(
168
processx::run(
169
quarto_bin,
R/utils.R
@@ -213,3 +213,7 @@ is_empty_dir <- function(dir) {
213
files <- list.files(dir, all.files = TRUE, no.. = TRUE)
214
length(files) == 0
215
216
217
+is_testing <- function() {
218
+ identical(Sys.getenv("TESTTHAT"), "true")
219
+}
0 commit comments