Deploy Shiny app with Flexdashboard

可紊 提交于 2019-12-12 04:26:15

问题


I know how to deploy a shiny app using http://www.shinyproxy.io/. Basically I just need server.R and ui.R. Then using docker it's a pretty easy job.

However, when using flexdashboard, I only have the .rmd file. How can I implement this deploy now?


回答1:


This is actually supported out of the box by ShinyProxy. You just need to add yourfile.Rmd file in the docker image (i.e. add the relevant commands in your Dockerfile), and then use the

docker-cmd: ["R", "-e rmarkdown::run('/path/to/yourFile.Rmd')"]

in the relevant field of the apps block. Full details on app configuration here




回答2:


Rendering Shiny R Markdown documents requires server-side support. This is a feature of the open source Shiny Server product (see the Shiny Server documentation) which doesn't appear to have been implemented by ShinyProxy.

If you wanted to add support to ShinyProxy it wouldn't be terribly difficult; there are a few details to work out but essentially the proxy just needs to use rmarkdown::run() instead of shiny::runApp().



来源:https://stackoverflow.com/questions/38870562/deploy-shiny-app-with-flexdashboard

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!