@@ -167,16 +167,16 @@ test_that("quarto sees same libpaths as main process", {
167167 withr :: local_dir(dirname(qmd ))
168168 out <- " out.md"
169169 # .libPaths() is known in Quarto render
170- quarto_render (qmd , output_format = " gfm" , output_file = out , quiet = TRUE )
171- expect_match(readLines( out ) , basename(tmp_lib ), all = FALSE , fixed = TRUE )
170+ out <- .render_and_read (qmd , output_format = " gfm" )
171+ expect_match(out , basename(tmp_lib ), all = FALSE , fixed = TRUE )
172172 # Opting-out globally
173173 withr :: with_options(
174174 list (quarto.use_libpaths = FALSE ),
175- quarto_render (qmd , output_format = " gfm" , output_file = out , quiet = TRUE )
175+ out <- .render_and_read (qmd , output_format = " gfm" )
176176 )
177- expect_no_match(readLines( out ) , basename(tmp_lib ), fixed = TRUE )
177+ expect_no_match(out , basename(tmp_lib ), fixed = TRUE )
178178 # Opting-out at command
179- quarto_render (qmd , output_format = " gfm" , output_file = out , quiet = TRUE , libpaths = NULL )
180- expect_no_match(readLines( out ) , basename(tmp_lib ), fixed = TRUE )
179+ out <- .render_and_read (qmd , output_format = " gfm" , libpaths = NULL )
180+ expect_no_match(out , basename(tmp_lib ), fixed = TRUE )
181181
182182})
0 commit comments