shinylive-r with renderImage()

,

Hi @petzi53, I have another solution for you! As I mentioned in the other post, shinylive requires that everything for the app be included in the code chunk (or hosted somewhere accessible from the internet). It's somewhat convoluted, but to include static files, like images, you have to base64 encode them (which converts the files into a long text string).

I created a quarto extension that makes this easier: GitHub - gadenbuie/quarto-base64: Quarto shortcode to easily base64 encode files

In your app example, you can use something like this:

```{shinylive-r}
#| standalone: true

## file: app.R
# ... shiny app file ...

## file: shiny.png
{{< base64 shiny.png >}}
```