Mar*_*ann 5 r shiny shiny-server
为闪亮的服务器设置这样一个闪亮的应用程序
+---/srv/shiny-server
| +---shinyApp1
| +---server.R
| +---ui.R
Run Code Online (Sandbox Code Playgroud)
一切正常.但是,当上述文件(ui.R,server.R)包含在packages inst/shiny文件夹中时,我该怎么做呢?(例如,参见我的gridsampler repo).
如何在闪亮的服务器上部署打包的闪亮应用程序?
你可以做我做的事.
我在闪亮的服务器上托管了很多闪亮的应用程序,而我所做的只是setwd()闪亮应用程序的目录然后调用shinyAppDir(".").
编辑2.5年后:请注意,如果您有global.R文件,这将无效 - 请参阅github上的此问题https://github.com/rstudio/shiny/issues/1063
我的解决方法是明确地发布global.R