@@ -97,8 +97,12 @@ quarto_available <- function(min = NULL, max = NULL, error = FALSE) {
9797 error = function (e ) NULL
9898 )
9999 if (! is.null(quarto_version )) {
100- if (! is.null(min )) is_above <- quarto_version > = min
101- if (! is.null(max )) is_below <- quarto_version < = max
100+ if (! is.null(min )) {
101+ is_above <- quarto_version > = min
102+ }
103+ if (! is.null(max )) {
104+ is_below <- quarto_version < = max
105+ }
102106 found <- is_above && is_below
103107 }
104108 if (! found && error ) {
@@ -168,11 +172,12 @@ quarto_run <- function(
168172
169173 # if `--quiet` has been set, quarto CLI won't report any error (e$stderr will be empty)
170174 # So remind user to run without `--quiet` to see the full error message
171- if (cli_arg_quiet() %in% args )
175+ if (cli_arg_quiet() %in% args ) {
172176 msg <- c(
173177 msg ,
174178 " i" = " Rerun with `quiet = FALSE` to see the full error message."
175179 )
180+ }
176181
177182 cli :: cli_abort(msg , call = .call , parent = e )
178183 }
@@ -223,16 +228,20 @@ is_using_quarto <- function(dir = ".", verbose = FALSE) {
223228 0
224229 has_qmd <- length(list.files(dir , pattern = " \\ .qmd$" , full.names = TRUE )) > 0
225230 if (has_quarto_yml ) {
226- if (verbose ) cli :: cli_inform(" A {.file _quarto.yml} has been found." )
231+ if (verbose ) {
232+ cli :: cli_inform(" A {.file _quarto.yml} has been found." )
233+ }
227234 return (TRUE )
228235 } else if (has_qmd ) {
229- if (verbose )
236+ if (verbose ) {
230237 cli :: cli_inform(" At least one file {.code *.qmd} has been found." )
238+ }
231239 return (TRUE )
232240 }
233241 # not a directory using Quarto
234- if (verbose )
242+ if (verbose ) {
235243 cli :: cli_inform(" No {.file _quarto.yml} or {.code *.qmd} has been found." )
244+ }
236245 return (FALSE )
237246}
238247
@@ -274,7 +283,9 @@ quarto_binary_sitrep <- function(verbose = TRUE, debug = FALSE) {
274283 quarto_found <- normalizePath(quarto_found , mustWork = FALSE )
275284
276285 same_config <- TRUE
277- if (debug ) verbose <- TRUE
286+ if (debug ) {
287+ verbose <- TRUE
288+ }
278289
279290 # Quarto R package situation ----
280291 if (verbose ) {
0 commit comments