posit-dev / r-shinylive

https://posit-dev.github.io/r-shinylive/
Other
156 stars 16 forks source link

Interactive plots using girafeOutput are not displayed when creating static version of an R Shiny app #64

Closed StatsDasha closed 1 month ago

StatsDasha commented 6 months ago

I am encountering a problem where interactive plots generated with girafeOutput are not displayed when exporting my R Shiny app using shinylive::export. The plots work as expected in the non-exported version of the Shiny app. Additionally, the tagList functionality in renderUI is also not being displayed.

Here is a link to the app on github-pages (https://statsdasha.github.io/MO-E-EQI/).

schloerke commented 5 months ago

Link to app code: https://github.com/StatsDasha/MO-E-EQI/blob/ef16faee2827b94765a9d5eb51e0ff12af30ae1d/docs/app.json

georgestagg commented 5 months ago

There are two problems happening in this app:

1) An instance of the getRandom() problem that will be fixed when https://github.com/r-wasm/rwasm/pull/32 has been merged and the affected R packages recompiled.

2) There is a bug in webR triggered when using character.only = TRUE with library() and require() calls. I've opened an issue to track that problem here: https://github.com/r-wasm/webr/issues/413


When I manually work around the issues above, the app otherwise seems to work!

Screenshot 2024-04-17 at 17 42 57

So, once the two issues above have been solved formally this app should start working as expected.

georgestagg commented 1 month ago

This should be working now that Shinylive 0.2.0 has been released, so I'm going to close this Issue.

Please feel free to open a fresh issue if there are still problems with your app after updating the R Shinylive package to the latest version and re-exporting your app.