quarto-dev / quarto-dev/quarto-r

Add option to specify output directory in quarto_render()

Open
#281 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
161
Forks
29
Avg merge
3h 18m
Merged PRs (30d)
1

Description

Currently, the quarto_render() function does not have a parameter to specify the output directory for rendered files. As a result, output files (e.g., HTML, PDF, DOCX) are always generated in the same directory as the source .qmd file, which can be inconvenient for organizing projects.

It would be very helpful to add an argument like output_dir to quarto_render(), similar to rmarkdown::render(output_dir = "path/to/folder"), so that users can control where the rendered files are saved.

This would improve workflow flexibility, especially in automated or reproducible reporting pipelines.

Thank you!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the quarto_render() entry point and trace how it passes rendering options to quarto-cli. Add support for an output_dir argument matching the requested behavior, then verify that rendered HTML, PDF, and DOCX files are saved in the specified directory rather than beside the source .qmd file.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.