Does site_dir support single shiny app configurations (app.R)

All the examples in the admin guide show the multiple file configuration (ui.R and server.R). Can I use the single file (app.R) configuration?

Cold you be a little more specifyc? shiny works with bout single app.R and ui.R + server.R

I was particularly concerned with the site_dir method of launching apps.

Does http://xx.xx.xx.xx:3838/app1

  • look for /app1/ui.R and /app1/server.R

  • and if they don't exist

  • launch /app1/app1.R?

or does it limit the launch to

  • /app1/ui.R and /app1/server.R

Yes, works with the single file setup, but has to be called app.R not app1.R
The name of your app goes on the folder name not on the R script name i.e. /app1/app.R

Thanks for the prompt reply. Very helpful.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.