Reputation: 61
I am trying to deploy my dashboard from Rstudio IDE by clicking Publish, but it returned me below error message:
Error in inferAppPrimaryDoc(appPrimaryDoc = appPrimaryDoc, appFiles = appFiles, : Application mode static requires at least one document. Calls: ... withStatus -> force -> bundleApp -> inferAppPrimaryDoc Execution halted
When I checked my shinyappsio dashboard, the apps was uploaded there but when clicked the url it showed 202 not found.
Can someone help me to solve this issue?
Thanks
Upvotes: 6
Views: 7310
Reputation: 84
If you have only 1 file, you need to rename your file and change it to app.R
Upvotes: 0
Reputation: 1082
Create a new app.R file in a separate directory with all dependent files, copy paste the r-script and then re-publish.
Rstudio > File > New File > Shiny Web App
Upvotes: 4