Open
Description
Hello,
In quarto_render()
, I am trying both to render multiple format types and to provide the output file with a different name to that of the Quarto document I am using. However, quarto_render()
does not adapt this supplied file name to each of the different file types. This results in a single document of type File, which gets overwritten each time the Quarto document renders each format type.
Example:
template.qmd
:
---
title: "Example title"
format:
html:
toc: true
docx:
toc: true
editor: source
---
This is a simple example file.
Code to render template.qmd
:
library(quarto)
quarto_render(input = "template.qmd",
output_format = "all",
output_file = "final_report")
Output:
A single final_report
document of type File.
Desired output:
A final_report.html
and a final_report.docx
.
Thanks!