Skip to content

quarto_render not supporting both multiple output formats and a specified output file name #43

Open
@hgoers

Description

@hgoers

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestupstreamconcerns an upstream library like quarto or pandoc

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions