Ask Your Question
2

How can the output directory for Quarto projects be modified in Rstudio?

asked 2022-03-14 11:00:00 +0000

david gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-03-04 02:00:00 +0000

qstack gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-03-14 11:00:00 +0000

Seen: 8 times

Last updated: Mar 04 '22