【发布时间】:2017-04-29 23:58:28
【问题描述】:
我已经安装了 Shiny Server,我可以使用示例应用程序(即http://serverip:3838/hello/)。
但是当我访问 http://serverip:3838/myapp/ 使用 myapp 时,它无法正常工作(加载直到停止)。
我是否遗漏了代码中的某些内容或应该完成的方式?
--(从 RStudio 本地运行 app.R,工作正常)
关于应用程序的信息:
位置:/srv/shiny-server/myapp
文件名:app.r
-
文件结构:
--加载库
图书馆(闪亮)
...
-- 连接和查询
con <- dbConnect(MySQL(), user = '#', password = '#', host = '#', dbname='#') tickets<-dbGetQuery(con, "Select * from table") issues_speed_unique<-unique(na.omit(dbGetQuery(con,"Select * from table2"))) dbDisconnect (con) some aggregations....-- 服务器代码
shinyServer( function(input,output){ ...--用户界面代码
shinyUI(fluidPage( ... shinyApp(ui = ui, server = server)
【问题讨论】:
标签: r shiny shiny-server