Skip to content

Commit

Permalink
embed the resource for HTML vignettes
Browse files Browse the repository at this point in the history
  • Loading branch information
cderv committed Jan 30, 2024
1 parent 0498b13 commit d89a064
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/utils-vignettes.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit d89a064

Please sign in to comment.