我按照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.
Run Code Online (Sandbox Code Playgroud)
这是我的文件的结构:

小智 5
使用时,deployApp()您必须部署包含您的ui.R和server.R文件的目录(或shiny.R/www/index.html如果使用自定义 UI)。文件不能是子目录。
此外,重要的是要注意目录或任何子目录中的任何 R 文件都将被解析,因此重要的是它们具有有效的语法。
| 归档时间: |
|
| 查看次数: |
5680 次 |
| 最近记录: |