rstudio / shiny-server

Host Shiny applications over the web.
https://rstudio.com/shiny/server
Other
712 stars 291 forks source link

Difficulties deploying Quarto shiny apps #564

Open silasprincipe opened 5 months ago

silasprincipe commented 5 months ago

I'm trying to deploy a Shiny app written using Quarto in my Shiny server, but I'm facing some difficulties.

My app was designed using the Quarto qmd file for the UI part and all the server code is on the server.R file. I pre-render the app (which works fine on my own computer) and then upload the index.html, index.qmd and server.R files to the server (#531). However, when I try to access it, it does not work, returning the following message:

No UI defined
Shiny couldn't find any UI for this application. We looked in:

www/index.html
ui.R
app.R

Using the "Old Faithful" example, I did three tests:

  1. Traditional app.R file - this one works fine: https://shiny.obis.org/normalapp/
  2. Quarto app written as a single .qmd, with both the UI and the server code on the same file - this one also works fine: https://shiny.obis.org/quartosingleapp/
  3. Quarto app written with server.R file - this one does not work and returns the error: https://shiny.obis.org/quartoapp/

For both 2 and 3, the app is pre-rendered and the files are uploaded.

Although I could include the server part on the .qmd document (as in 2), the app is quite complex and I would prefer to let it separate. Do you have any idea of what may be causing this problem?

I appreciate in advance any help.