@@ -98,16 +98,16 @@ test_that("quarto sees same libpaths as main process", {
9898 withr :: local_dir(dirname(qmd ))
9999 out <- " out.md"
100100 # .libPaths() is known in Quarto render
101- quarto_render (qmd , output_format = " gfm" , output_file = out , quiet = TRUE )
102- expect_match(readLines( out ) , basename(tmp_lib ), all = FALSE , fixed = TRUE )
101+ out <- .render_and_read (qmd , output_format = " gfm" )
102+ expect_match(out , basename(tmp_lib ), all = FALSE , fixed = TRUE )
103103 # Opting-out globally
104104 withr :: with_options(
105105 list (quarto.use_libpaths = FALSE ),
106- quarto_render (qmd , output_format = " gfm" , output_file = out , quiet = TRUE )
106+ out <- .render_and_read (qmd , output_format = " gfm" )
107107 )
108- expect_no_match(readLines( out ) , basename(tmp_lib ), fixed = TRUE )
108+ expect_no_match(out , basename(tmp_lib ), fixed = TRUE )
109109 # Opting-out at command
110- quarto_render (qmd , output_format = " gfm" , output_file = out , quiet = TRUE , libpaths = NULL )
111- expect_no_match(readLines( out ) , basename(tmp_lib ), fixed = TRUE )
110+ out <- .render_and_read (qmd , output_format = " gfm" , libpaths = NULL )
111+ expect_no_match(out , basename(tmp_lib ), fixed = TRUE )
112112
113113})
0 commit comments