From d89a064673463d2429e119971a07e884b872d9a9 Mon Sep 17 00:00:00 2001 From: Christophe Dervieux Date: Fri, 3 Nov 2023 15:29:39 +0100 Subject: [PATCH] embed the resource for HTML vignettes --- R/utils-vignettes.R | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/R/utils-vignettes.R b/R/utils-vignettes.R index 9bc1435..45b65c3 100644 --- a/R/utils-vignettes.R +++ b/R/utils-vignettes.R @@ -17,7 +17,9 @@ vig_engine <- function(..., quarto_format) { } vweave_quarto <- function(format) { + meta <- list() + meta["embed-resources"] <- TRUE function(file, driver, syntax, encoding, quiet = FALSE, ...) { - quarto_render(file, ..., output_format = format) + quarto_render(file, ..., output_format = format, metadata = meta) } }