Cette page est affichée en anglais. Une traduction française est en cours.
ConfigsJul 15, 2026·2 min de lecture

Shiny — Interactive Web Applications with R

Shiny is a web application framework for R that lets data scientists build interactive dashboards and data-driven web apps directly from R scripts without needing HTML, CSS, or JavaScript.

Prêt pour agents

Installation agent prête

Cet actif peut être installé après choix du runtime, vérification du plan et exécution de la commande adaptée.

Native · 98/100Policy : autoriser
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Single
Confiance
Confiance : Established
Point d'entrée
Shiny Overview
Commande d'installation directe
npx -y tokrepo@latest install dad5d847-802a-11f1-9bc6-00163e2b0d79 --target codex

À exécuter après confirmation du plan en dry-run.

Introduction

Shiny is the standard framework for building interactive web applications in R. It allows data scientists and analysts to transform their R analyses into shareable web apps without learning web development, making data exploration and reporting accessible to non-technical stakeholders.

What Shiny Does

  • Turns R scripts into interactive web applications with reactive data binding
  • Provides pre-built UI components (inputs, plots, tables, layouts)
  • Handles client-server communication automatically via WebSocket
  • Supports real-time data updates and user-driven parameter exploration
  • Deploys to Shiny Server, Posit Connect, or shinyapps.io cloud hosting

Architecture Overview

Shiny apps consist of a UI definition and a server function. The UI declares inputs and outputs using R functions that generate HTML. The server function contains reactive expressions that re-execute when inputs change. Communication between browser and R session happens over WebSocket, with Shiny managing the reactive dependency graph to minimize recomputation.

Self-Hosting & Configuration

  • Install the shiny package from CRAN
  • Run locally with shinyApp() or runApp() during development
  • Deploy to Shiny Server (open source) for multi-user hosting
  • Use Posit Connect or shinyapps.io for managed deployment
  • Configure authentication, scaling, and resource limits in shiny-server.conf

Key Features

  • Reactive programming model that automatically tracks data dependencies
  • Rich ecosystem of extension packages (shinydashboard, bslib, DT, plotly)
  • No JavaScript required for most use cases
  • Works with any R visualization library (ggplot2, plotly, leaflet)
  • Supports Python integration via reticulate for mixed-language apps

Comparison with Similar Tools

  • Streamlit — Python-based with a simpler linear model; Shiny offers more flexible layouts and deeper reactivity
  • Dash (Plotly) — Python framework requiring explicit callbacks; Shiny infers reactive dependencies automatically
  • Gradio — Focused on ML model demos; Shiny is a general-purpose web app framework
  • Panel (HoloViz) — Python dashboarding; Shiny has the largest R ecosystem and community

FAQ

Q: Do I need to know HTML/CSS/JavaScript? A: No. Shiny generates the web UI from R code. Advanced users can add custom HTML/JS if needed.

Q: Can Shiny handle many concurrent users? A: Yes, with Shiny Server Pro or Posit Connect which support load balancing and multiple R processes.

Q: Is Shiny only for R? A: Primarily, but Shiny for Python (PyShiny) is also available as a separate project.

Q: Can I embed Shiny apps in other websites? A: Yes. Shiny apps can be embedded via iframe in any web page.

Sources

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires