- Notifications
You must be signed in to change notification settings - Fork1.9k
Easy interactive web applications with R
License
rstudio/shiny
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Easily build rich and productive interactive web apps in R — no HTML/CSS/JavaScript required.
- An intuitive and extensiblereactive programming model which makes it easy to transform existing R code into a "live app" where outputs automatically react to new user input.
- Compared to event-based programming, reactivity allows Shiny to do the minimum amount of work when input(s) change, and allows humans to more easily reason about complexMVC logic.
- A prebuilt set of highly sophisticated, customizable, and easy-to-use widgets (e.g., plots, tables, sliders, dropdowns, date pickers, and more).
- An attractive default look based onBootstrap which can also be easily customized with thebslib package or avoided entirely with more direct R bindings to HTML/CSS/JavaScript.
- Seamless integration withR Markdown, making it easy to embed numerous applications natively within a larger dynamic document.
- Tools for improving and monitoring performance, including native support forasync programming,caching,load testing, and more.
- Modules: a framework for reducing code duplication and complexity.
- An ability tobookmark application state and/orgenerate code to reproduce output(s).
- A rich ecosystem of extension packages for morecustom widgets,input validation,unit testing, and more.
To install the stable version from CRAN:
install.packages("shiny")
Once installed, load the library and run an example:
library(shiny)# Launches an app, with the app's source code includedrunExample("06_tabsets")# Lists more prepackaged examplesrunExample()
For more examples and inspiration, check out theShiny User Gallery.
For help with learning fundamental Shiny programming concepts, check out theMastering Shiny book and theShiny Tutorial. The former is currently more up-to-date with modern Shiny features, whereas the latter takes a deeper, more visual, dive into fundamental concepts.
If you want to chat about Shiny, meet other developers, or help us decide what to work on next,join us on Discord.
To ask a question about Shiny, please use theRStudio Community website.
For bug reports, please use theissue tracker and also keep in mind that bywriting a good bug report, you're more likely to get help with your problem.
We welcome contributions to theshiny package. Please see ourCONTRIBUTING.md file for detailed guidelines of how to contribute.
The shiny package as a whole is licensed under the GPLv3. See theLICENSE file for more details.
Shiny is supported on the latest release version of R, as well as the previous four minor release versions of R. For example, if the latest release R version is 4.1, then that version is supported, as well as 4.0, 3.6, 3.5, and 3.4.
About
Easy interactive web applications with R