为什么我的应用程序没有在 shinyapps.io 上部署?

Why my app doesn't deploy on shinyapps.io?

我按照 shinyapps.io 中显示的相同命令上传我的应用程序,但出现以下错误:

> library(shinyapps)
> shinyapps::deployApp("/Users/mona/CS764/demo")
Error in lint(appDir) : Cancelling deployment: invalid project layout.
The project should have one of the following layouts:
1. 'shiny.R' and 'ui.R' in the application base directory,
2. 'shiny.R' and 'www/index.html' in the application base directory,
3. An R Markdown (.Rmd) document.

这是我的文件结构:

使用 deployApp() 时,您必须部署包含 ui.Rserver.R 文件的目录(如果使用自定义 UI).文件不能是子目录。

此外,请务必注意目录或任何子目录中的任何 R 文件都将被解析,因此它们具有有效语法很重要。