### Bug description

Using embed-resources to contain output in a single html doesn't work when rendering from rstudio (2022.07.1 Build 554), but does work when using render on the command line (ubuntu 20.04): `quarto render test.qmd --output test.html`

````md
---
title: "param test"
format:
  html:
    embed-resources: true
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

- [X] 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.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [X] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
2022-09-08T17:42:35Z
mikerspencer
bug
closed
embed-resources works from command line, not from rstudio
https://github.com/quarto-dev/quarto-cli/issues/2364