R 为什么我的应用程序没有';你不能在shinyapps.io上部署吗?
我按照中所示的命令上载我的应用程序,但出现以下错误:R 为什么我的应用程序没有';你不能在shinyapps.io上部署吗?,r,shiny,R,Shiny,我按照中所示的命令上载我的应用程序,但出现以下错误: > 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'
> 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.R
和server.R
文件的目录(如果使用自定义ui,则部署shiny.R
/www/index.html
)。这些文件不能是子目录
此外,重要的是要注意,目录或任何子目录中的任何R文件都将被解析,因此重要的是它们具有有效的语法 它不应该是
shinyapps::deployApp(“/Users/mona/CS764/demo/1a”)
?谢谢,它工作了,但给了我这个错误:*解析失败/Users/mona/CS764/demo/vldb/ui.R.BACKUP.4098.R解析错误(输入,n=-1L,编码=检查编码(文件)):63:1:意外输入62:tabPanel(“结果”,selectInput(“featureEx”),“功能探索”,63:“意外输入”听起来可能像是你代码中的输入错误。检查是否有逗号或括号放错了位置。