Publish Rstudio Shiny App in intranet

蹲街弑〆低调 提交于 2019-12-02 16:51:45

you don't need shiny server for this, you just need to run an R instance with shiny

http://rstudio.github.io/shiny/tutorial/#ui-and-server

http://shiny.rstudio.com/

shiny automatically runs it at local host... you need to change it to your own ip if you want your colleges be able to access it..

ip="192.168.178.10" # change this!
runApp("../microplate",host=ip) # change microplate to the name of your shiny package/app
Bill

RStudio also has a hosted Shiny option that is currently in Alpha. You can sign up here https://www.shinyapps.io/admin/#/signup

With hosted Shiny the intention is to let developers focus on building applications while RStudio will worry about managing servers, monitoring performance, and ensuring uptime.

I am sharing apps using the following:

runApp(list(ui=ui, server=server), host="0.0.0.0", port=1234)

(if your ui.R and server.R are in the same file)

runApp("C:/shinyapp", host="0.0.0.0", port=1234)

(if you have an ui.R and a server.R files as 2 files in the shinyapp folder)

After, I send my IP followed by the port that I set up as an hyperlink. Assuming that my IP is 192.168.178.10, I will send:

http://192.168.178.10:1234

Monitoring a shiny app shared in my internal network

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