rstudio /shiny

Easy interactive web applications with R

★ 5,705⑂ 1,893👁 312⑃ 1,672● 2,791▤ 14
RNOASSERTIONCreated 2012-06-20shiny.posit.co/
下载:shiny 1.14.0shiny-1.14.0 ↓1.14.02026-06-22
+0
日增长
5,705
stars
1,893
forks
312
watchers
1,672
prs
2,791
issues
14
releases

README

shiny 








Easily build rich and productive interactive web apps in R — no HTML/CSS/JavaScript required.

 Features

 An intuitive and extensible reactive 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 complex MVC 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 on Bootstrap which can also be easily customized with the bslib package or avoided entirely with more direct R bindings to HTML/CSS/JavaScript.
 Seamless integration with R Markdown, making it easy to embed numerous applications natively within a larger dynamic document.
 Tools for improving and monitoring performance, including native support for async programming, caching, load testing, and more.
 Modules: a framework for reducing code duplication and complexity.
 An ability to bookmark application state and/or generate code to reproduce output(s).
 A rich ecosystem of extension packages for more custom widgets, input validation, unit testing, and more.

 Installation

To install the stable version from CRAN:

r
install.packages("shiny")


 Getting Started

Once installed, load the library and run an example:

r
library(shiny)
 Launches an app, with the app's source code included
runExample("06_tabsets")
 Lists more prepackaged examples
runExample()


For more examples and inspiration, check out the Shiny User Gallery.

For help with learning fundamental Shiny programming concepts, check out the Mastering Shiny book and the Shiny 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.

 Agent Skill

shiny ships an Agent Skill at system.file("skills", "shiny-for-r", package = "shiny") to help coding agents write idiomatic Shiny for R apps. Agents using btw discover it automatically once shiny is attached. To copy it into a project for use with Claude Code and other skill-aware tools, run:

r
btw::btw_skill_install_package("shiny")


 Join the conversation

If you want to chat about Shiny, meet other developers, or help us decide what to work on next, join us on Discord.

 Getting Help

To ask a question about Shiny, please use the RStudio Community website.

For bug reports, please use the issue tracker and also keep in mind that by writing a good bug report, you're more likely to get help with your problem.

 Contributing

We welcome contributions to the shiny package. Please see our CONTRIBUTING.md file for detailed guidelines of how to contribute.

 License

The shiny package as a whole is licensed under the MIT License. See the LICENSE file for more details.

 R version support

Shiny is

Top issues

Latest release

shiny 1.14.0 v1.14.0 2026-06-22
New features

 New startApp() runs a Shiny app in non-blocking mode, returning a
  ShinyAppHandle object with stop(), status(), url(), and result()
  methods. When a new app is started, any previously running non-blocking app
  is automatically stopped. (4349)

 session$destroy() and session$onDestroy() are now available on
  module session proxies to clean up "dangling reactivity" when dynamic
  module UI is removed. Calling session$destroy() invokes all
  registered onDestroy() callbacks for that scope and its descendants,
  tearing down reactive values, expressions, and observers

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON