Skip to content

Render to a new file name stores resources in directory with name of qmd file #2363

Open
@mikerspencer

Description

@mikerspencer

Bug description

When rendering a qmd file from the command line the resources folder is named after the qmd file, rather than the html output. This makes it impossible to parameterise output file names.

type expected actual
source test.qmd test.qmd
resources test_1_files test_files
output test_1.html test_1.html

Render from the command line (Ubuntu 20.04):

quarto render test.qmd --output test_1.html

---
title: "param test"
format: html
editor: source
params:
  x: 10
  y: 0.5
---

## Quarto

Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see <https://quarto.org>.

## Running Code

* The param x is `r params$x`
* The param y is `r params$y`


```{r}
plot(rnorm(n = params$x,
           mean = params$y))
```

Checklist

  • Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
  • Please format your issue so it is easier for us to read the bug report.
  • Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
  • Please document the operating system you're running. If on Linux, please provide the specific distribution.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions