@@ -98,16 +98,16 @@ test_that("quarto sees same libpaths as main process", {
98
98
withr :: local_dir(dirname(qmd ))
99
99
out <- " out.md"
100
100
# .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 )
103
103
# Opting-out globally
104
104
withr :: with_options(
105
105
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" )
107
107
)
108
- expect_no_match(readLines( out ) , basename(tmp_lib ), fixed = TRUE )
108
+ expect_no_match(out , basename(tmp_lib ), fixed = TRUE )
109
109
# 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 )
112
112
113
113
})
0 commit comments