quarto-dev / quarto-dev/quarto-cli
Render to a new file name stores resources in directory with name of qmd file
Open
@cscheid is already working on this.
Since Nov 15, 2022.
bug
files
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.