-->

Is there a way to deploy R shiny apps as web page

2020-08-01 04:23发布

问题:

Let me know if there is a way to deploy shiny dashboards as a webpage using windows server.

I know it is possible using Linux but it need it for windows.

回答1:

If you put below code as last lines:

app <- shinyApp(ui,server)
runApp(app,host="0.0.0.0",port=5050)

Then to run you Shiny App in any other machine just give the IP of the machine where the code is deployed and the port number which is 5050 in this case. So, for example if you code is deployed on a machine with IP: 123.12.123.12 then for any other machine just write 123.12.123.12:5050 on any web browser.

The only caveat is the machine where the code is deployed and the machine where you need to use these codes should be in same domain.