Shiny is a new package from RStudio that makes it incredibly easy to build interactive web applications with R.
For an introduction and examples, visit the Shiny Dev Center.
- Shiny applications are automatically "live" in the same way that spreadsheets are live. Outputs change instantly as users modify inputs, without requiring a reload of the browser.
- Works in any R environment (Console R, Rgui for Windows or Mac, ESS, StatET, RStudio, etc.).
- Attractive default UI theme based on Bootstrap.
- A highly customizable slider widget with built-in support for animation.
- Prebuilt output widgets for displaying plots, tables, and printed output of R objects.
- Fast bidirectional communication between the web browser and R using the httpuv package.
- Uses a reactive programming model that eliminates messy event handling code, so you can focus on the code that really matters.
- Develop and redistribute your own Shiny widgets that other developers can easily drop into their own applications (coming soon!).
To install the stable version from CRAN, simply run the following from an R console:
To install the latest development builds directly from GitHub, run this instead:
if (!require("devtools")) install.packages("devtools") devtools::install_github("rstudio/shiny")
To learn more we highly recommend you check out the Shiny Tutorial. The tutorial explains the framework in-depth, walks you through building a simple application, and includes extensive annotated examples.
Bootstrap 3 migration
Shiny versions 0.10.2.2 and below used the Bootstrap 2 web framework. After 0.10.2.2, Shiny switched to Bootstrap 3. For most users, the upgrade should be seamless. However, if you have have customized your HTML-generating code to use features specific to Bootstrap 2, you may need to update your code to work with Bootstrap 3.
If you do not wish to update your code at this time, you can use the shinybootstrap2 package for backward compatibility.
If you prefer to install an older version of Shiny, you can do it using the devtools package:
devtools::install_version("shiny", version = "0.10.2.2")
Guidelines for contributing
We welcome contributions to the shiny package. Please see our CONTRIBUTING.md file for detailed guidelines of how to contribute.
The shiny package is licensed under the GPLv3. See these files in the inst directory for additional details:
- COPYING - shiny package license (GPLv3)
- NOTICE - Copyright notices for additional included software