Reputation: 1221
I am trying to build a Rstudio/Shiny App and post it in our intranet so that everyone else in our office could see it. I am a windows guy, and the instructions online about how to setup a shiny server within Linux environment is a bit difficult for me. Is there an easy way that I can could accomplish this goal without messing up with Linux. Even if I have to do so, is there an easy way to just have my webpage available to people within our company, not everyone on the internet. Thanks!
Upvotes: 14
Views: 17530
Reputation: 497
I am sharing apps using the following:
If your ui and server are in the same R file: runApp(list(ui=ui, server=server), host="0.0.0.0", port=1234)
If you have an ui.R and a server.R files in the "shinyapp" folder: runApp("C:/shinyapp", host="0.0.0.0", port=1234)
After, I send my IP (you can get your IP from the terminal using ipconfig
) followed by the port that I set up as an hyperlink. Assuming that my IP is 192.168.178.10, I will send:
Monitoring a shiny app shared in my internal network
Upvotes: 2
Reputation: 21
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.
Upvotes: 2
Reputation: 1703
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
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
Upvotes: 14