Is there a way to deploy R shiny apps as web page using windows server?

霸气de小男生 提交于 2019-12-12 09:27:13

问题


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.



来源:https://stackoverflow.com/questions/47865169/is-there-a-way-to-deploy-r-shiny-apps-as-web-page-using-windows-server

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