Shiny Publish problem

Hi,
I have a problem publishing my Rshiny app to shinyapps.io
Here is the error:

Preparing to deploy application...DONE
Uploading bundle for application: 609021...Error in inferAppPrimaryDoc(appPrimaryDoc = appPrimaryDoc, appFiles = appFiles,  : 
  Application mode static requires at least one document.
Calls: <Anonymous> ... withStatus -> force -> bundleApp -> inferAppPrimaryDoc
Execution halted

Can someone help me?

Weichen

Solved.

At first, I simply execute the shiny.R (the whole code)
Wrong! Try this.

Create two r files under the same directory.
ui.R
server.R
and then executive shiny.R

You would see an amazing thing happen.

But now, I have another problem.

I can publish it, but the app cannot show the graphs.
I check the log and it says,
Warning: Error in : Aesthetics must be either length 1 or the same as the data (1): x, y, label, vjust, fill
Also, there is another warning, Warning in Ops.factor(Year, start) : ‘>=’ not meaningful for factors.

It is pretty strange, because when I run the app on my own laptop, it works super well.

Please help...

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