But how do you do the same if its a multi-file Shiny app e.g. a ui.R and a server.R file? The server.R and ui.R doesn't have an object to put in shinyApp()
That seems to work locally when I launch the app from the deploy.R file, but when I deploy to Shinyapps.io it does not seem to use it and goes back to the ui.R in the folder. Is there anyway to force the app to use deploy.R? I tried using appPrimaryDoc="deploy.R" but it didn't work.
e.g. tried rsconnect::deployApp(appPrimaryDoc = "deploy.R") on this folder: