Deploy Shiny app with Flexdashboard

后端 未结 3 1335
小蘑菇
小蘑菇 2021-01-25 00:54

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

相关标签:
3条回答
  • 2021-01-25 01:23

    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

    0 讨论(0)
  • 2021-01-25 01:34

    you can have a look here how to make a Docker image with a R Flexdashboard. You then have to change the container cmd in the application.yml of Shinyproxy to ["R", "-e", "rmarkdown::run('/...."] for rendering the Rmd Flexdashboard file. Please see my blog post at: https://medium.com/analytics-vidhya/deploying-a-shiny-flexdashboard-with-docker-cca338a10d12

    0 讨论(0)
  • 2021-01-25 01:44

    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().

    0 讨论(0)
提交回复
热议问题