posit-dev / r-shinylive

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

Image tags in the UI cause fatal error #85

Closed daattali closed 1 month ago

daattali commented 1 month ago

The following app:

library(shiny)

ui <- fluidPage(
  tags$img(src="https://raw.githubusercontent.com/rstudio/shiny/main/man/figures/logo.png", width=100),
  "test"
)

server <- function(input, output, session) {}

shinyApp(ui, server)

Doesn't start up.

I get an error message

Robj construction for this JS object is not yet supported

image

georgestagg commented 1 month ago

This seems to be working OK in the shinylive.io editor.

Screenshot 2024-06-03 at 10 33 36

That means it is likely that the problem has been fixed in the latest Shinylive assets, and will no longer occur in the R {shinylive} package once it has been updated to use the latest version of the assets.

daattali commented 1 month ago

Thanks, it does look to be fixed.