Shiny Server is an open source back end program that makes a big difference. It builds a web server specifically designed to host Shiny apps. With Shiny Server you can host your apps in a controlled environment, like inside your organization, so your Shiny app (and whatever data it needs) will never leave your control. You can also use Shiny Server to make your apps available across the Internet when you choose. Shiny Server will host each app at its own web address and automatically start the app when a user visits the address. When the user leaves, Shiny Server will automatically stop the app. This article demonstrates some of the features of Shiny Server and introduce you to the deep literature that is waiting to help you download, install, and configure your own Shiny Server.
You can use the free and open source Shiny Server to host your Shiny applications, or you can leverage RStudio Connect to scale your applications to a broader audience, restrict access to particular applications, or control the resources consumed by your Shiny applications. With RStudio Connect, you can share Shiny applications, R Markdown reports, dashboards and plots, as well as Python-based content, including Flask, Dash, Streamlit and Bokeh, in one convenient place with push-button publishing from the RStudio IDE. Features include scheduled execution of reports and flexible security policies to bring the power of data science to your entire enterprise. You can see a full breakdown of the differences between the two editions here.
Previously, professional features of Shiny server were available in Shiny Server Pro only. RStudio will continue to support Shiny Server Pro for existing customers, but we strongly recommend customers consider RStudio Connect as the professional alternative to Shiny Server Open Source.
Shiny Server runs on a variety on Linux distributions. If you’re not comfortable with Linux or would prefer to have someone else manage the server on which your Shiny applications are hosted, check out shinyapps.io to learn about hosting your applications in an environment that is managed and maintained by RStudio for you. shinyapps.io lets you use a pay-as-you-go model to tap into some of the features only available in RStudio Connect, an arrangement that is more approachable for some organizations.
We hope to highlight some features of Shiny Server in this article, but for a full discussion on how to manage and configure your server, please see the official Admin Guide. Specifically, we discuss hosting a directory of applications, letting users manage their own applications, and requiring user authentication on an application.
(See this page for a complete step-by-step walkthrough of this example.)
Shiny Server allows you to host a directory full of Shiny applications and other web assets (HTML files, CSS files, etc.) using the site_dir configuration. By default, Shiny Server will use a site_dir to make any applications and assets stored in /srv/shiny-server/ available. You can begin placing Shiny applications inside this directory then referencing them on your server. For instance, a Shiny application stored in /srv/shiny-server/myApp would be available at http://myserver.org:3838/myApp, (where myserver.org is the name of your server) by default. You could also place HTML files in this directory to make them available on your server, as well.
This feature is only available in Shiny Server and Shiny Server Pro. RStudio Connect, on the other hand, offers push-button deployment.
(See this page for a complete step-by-step walkthrough of this example.)
In some cases, it may be desirable to allow users on a system to manage and update their own Shiny applications stored in their home directories; the user_apps configuration allows you to do just that. Shiny applications hosted inside users’ ShinyAppsdirectory will be available online. For instance, a user who stored a Shiny application in /home/kim/ShinyApps/myApp would be able to access it at http://myserver.org:3838/kim/myApp on a server configured to use user_apps.
(See this page for a complete step-by-step walkthrough of this example with RStudio Connect and this page for Shiny Server Pro.)
Requiring user authentication is not available in open source Shiny Server, however both RStudio Connect and Shiny Server Pro support various forms of user authentication which can be used to require your users to login before being able to access particular Shiny applications on your server.
Information Source – https://shiny.rstudio.com/articles/shiny-server.html