Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To modify the output directory for Quarto projects in RStudio, you can use the "output_dir" option in the YAML metadata at the beginning of your Quarto document.

Here's an example:

---
title: My Quarto Document
author: John Doe
output:
  format: html
  output_dir: ./my_output_folder/
---

# Your content goes here

In this example, the "outputdir" option is set to "./myoutputfolder/", which means that the HTML output for this Quarto document will be saved in the "myoutput_folder" directory.

You can modify this option to any directory that you prefer. After modifying the YAML metadata, simply render the Quarto document as you normally would using RStudio's "Knit" button or the "quarto::render()" function. The output will be saved in the specified directory.