quarto_render_to_dir: Render Quarto document to another directory

View source: R/quarto_funs.R

quarto_render_to_dirR Documentation

Render Quarto document to another directory

Description

Currently quarto::quarto_render() does not allow to render quarto to another directory. This function creates a temporary directory within which to render the .qmd doc, then copies files to the output directory.

Usage

quarto_render_to_dir(
  qmd_file,
  out_dir,
  render_in_temp = FALSE,
  overwrite = TRUE,
  ...
)

Arguments

qmd_file

string. file path for input .qmd file

out_dir

string. path to output directory in which to save .qmd output

render_in_temp

logical. whether to render in a temporary directory or in the same directory as the input file. Defaults to FALSE.

overwrite

logical. whether to overwrite existing files in the output directory.

...

passed to quarto_render

Value

Invisibly returns character vector with output file path(s). Mainly called for side effects – rendering quarto in new directory.


WhiteJP/jpw documentation built on April 17, 2025, 5:47 a.m.