It should be possible to create a self-contained HTML file with Quarto using
format:
html:
embed-resources: true
as documented here:
https://quarto.org/docs/output-formats/html-basics.html#self-contained, yet when I try to email the resulting HTML file, the chart does not appear, as in this image -
and I get a file folder along with the HTML file
(I think it was working last week, I'm not sure but I definitely did get a self-contained file).
Am I doing something wrong?
MWE:
---
title: "foo"
format:
html:
embed-resources: true
---
```{r}
library(ggplot2)
mtcars |>
ggplot(aes(mpg, disp)) +
geom_point()
```
Using system("quarto render elevators.qmd --output elevators.html")
gives the same result.