shiny-for-r
यह क्या करती है
यह स्किल एजेंट को सिखाती है कि Shiny पैकेज से R में इंटरैक्टिव वेब ऐप कैसे बनाएँ। यह हर काम के लिए केंद्रित गाइड की ओर इशारा करने वाली एक सूची की तरह काम करती है, जैसे रिएक्टिविटी या लेआउट।
कब इस्तेमाल करें
- ✓जब उपयोगकर्ता इनपुट और आउटपुट वाला Shiny for R ऐप बनाना या ठीक करना चाहता है।
- ✓जब उपयोगकर्ता को दोबारा इस्तेमाल होने वाले Shiny मॉड्यूल या कार्ड और थीम वाला ऐप लेआउट चाहिए।
- ✓जब उपयोगकर्ता को रिएक्टिव वैल्यू, असिंक कार्य या Shiny ऐप की डीबगिंग में मदद चाहिए।
Skill का लिंक
https://github.com/rstudio/shiny/blob/main/inst/skills/shiny-for-r/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे लिए R में एक Shiny ऐप बनाने में मदद कीजिए, जहाँ उपयोगकर्ता कोई क्षेत्र चुने और चार्ट अपने-आप बदल जाए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट यह सूची पढ़ता है, काम से मेल खाने वाले एक या दो गाइड खोलता है, और उनके अनुसार कोड लिखता है। जिन विषयों का गाइड नहीं है, उन्हें पैकेज की सामान्य जानकारी से सँभाला जाता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Shiny for R
A Shiny app has a ui object (or function), a server(input, output, session) function, and shinyApp(ui, server) to run them together. The
reactive graph is the engine: reading a reactive source (input$x, a
reactive(), a reactiveVal()) inside a reactive context registers a
dependency, so changing that source re-runs everything that read it — you
never call outputs or schedule updates yourself.
This skill is an index. Find your task below and read the linked reference file before writing code for that area. Read the one or two references your task actually touches, not all of them.
Not every corner of Shiny has a reference here — plain inputs
(selectInput(), actionButton(), ...), deployment, and app performance
tuning are not covered. For those, work from your own knowledge of the
package and its help pages.
Foundations
| Topic | Use when | Reference |
|---|---|---|
| Reactivity | A value should recompute or an output update as inputs change; choosing between reactive()/observe()/observeEvent(); req(), isolate(), bindEvent(), timers, polling |
references/reactivity.md |
| Modules | A reusable, repeatable UI+server component; avoiding input/output id collisions across copies | references/modules.md |
| Session lifecycle | Per-session cleanup (onSessionEnded()), flush hooks, unhandled errors, per-session vs app-level scope, session$userData |
references/session-lifecycle.md |
Async
| Topic | Use when | Reference |
|---|---|---|
| Async | Returning a promises::promise from a render/observer so R keeps serving other sessions during slow I/O |
references/async.md |
| Extended tasks | Running slow work in a background process while the session that started it stays fully interactive; task buttons | references/extended-tasks.md |
Dashboard building
| Topic | Use when | Reference |
|---|---|---|
| Dashboard design | Turning a dataset or brief into a polished analytical dashboard; information hierarchy, shared filters, responsive layout, empty states, final visual/functional pass | references/dashboard-design.md |
| Dashboard components | Composing bslib card(), value_box(), accordion(), tooltip()/popover() instead of hand-rolled div() markup |
references/dashboard-components.md |
| Layouts | Arranging a page with bslib page_sidebar(), layout_columns(), card() instead of nested fluidRow()/column() pyramids |
references/layouts.md |
Navigation & dynamic UI
| Topic | Use when | Reference |
|---|---|---|
| Navigation | Grouping switchable content into a real tab container/navbar instead of faking tabs with buttons plus conditionalPanel() |
references/navigation.md |
| Dynamic UI | UI that must change after render — update*Input(), conditionalPanel(), renderUI()/uiOutput(), or insertUI()/removeUI() |
references/dynamic-ui.md |
Outputs
| Topic | Use when | Reference |
|---|---|---|
| Plots | Pairing renderPlot()/plotOutput() for base/lattice/ggplot2 graphics; click/hover/brush interaction via nearPoints()/brushedPoints() |
references/plots.md |
| Tables | Choosing renderTable() (static), the deprecated renderDataTable(), or DT/reactable for sortable/searchable interactive tables |
references/tables.md |
| Files | fileInput() uploads and downloadHandler()/downloadButton() generated-file downloads |
references/files.md |
Feedback & state
| Topic | Use when | Reference |
|---|---|---|
| Feedback | Toasts/notifications, modal dialogs, progress bars, and input validation sent from the server, typically inside observeEvent() |
references/feedback.md |
| Bookmarking | Saving/restoring app state via a shareable URL instead of a hand-built query string or custom persistence layer | references/bookmarking.md |
Theming, assets & extending
| Topic | Use when | Reference |
|---|---|---|
| Theming & assets | Setting bslib::bs_theme() Sass variables, thematic for plot theming, brand.yml, or adding custom CSS/JS/image assets |
references/theming-assets.md |
| Custom components | Integrating a third-party JS widget or bespoke interaction when no built-in input/output covers it | references/custom-components.md |
Testing & observability
| Topic | Use when | Reference |
|---|---|---|
| Testing | Verifying server-side reactive logic with testServer() without starting a real Shiny process or browser |
references/testing.md |
| Debugging | Dropping into a |
अक्सर पूछे जाने वाले सवाल
Shiny ऐप अपने आउटपुट कैसे अपडेट करता है?
रिएक्टिव कोड तब फिर चलता है जब उसके पढ़े गए इनपुट बदलते हैं, इसलिए आउटपुट हाथ से अपडेट नहीं करने पड़ते।
Shiny मॉड्यूल क्या है?
मॉड्यूल UI और सर्वर कोड का एक दोबारा इस्तेमाल होने वाला हिस्सा है, जो कॉपी होने पर ID टकराने से बचाता है।
क्या इसमें डिप्लॉयमेंट शामिल है?
नहीं। स्किल कहती है कि डिप्लॉयमेंट और ऐप परफ़ॉर्मेंस ट्यूनिंग कवर नहीं हैं।
जानकारी
लेखक का मूल विवरण
Building, styling, testing, debugging, or observing a Shiny for R app - library(shiny), shinyApp(), runApp(). Index skill: read this, then open the linked reference for the task. Covers reactivity (reactive/observe/req/isolate/bindEvent); modules; async promises and ExtendedTask; bslib layouts, navigation, cards, value boxes, and theming (incl. thematic and brand.yml); dynamic UI; plots with click/brush interaction; tables, file upload/download; notifications, modals, progress, validation; bookmarking; custom JS components; testServer testing; debugging; OpenTelemetry; and when to reach for DT
repo: rstudio/shiny
लोकप्रियता
- GitHub स्टार
- 5.7k
- रैंकिंग में स्थान
- #14753
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
मिलती-जुलती skills
angular-developer
280kआपके एजेंट को Angular code बनाने और प्रोजेक्ट स्ट्रक्चर पर सलाह देने में मदद करता है। नए प्रोजेक्ट शुरू करने, code के हिस्से बनाने, या performance और accessibility सुधारने में उपयोगी है।
frontend-a11y
280kआपके एजेंट को web interfaces को सबके लिए accessible बनाने में मदद करता है। यह सुनिश्चित करता है कि websites और apps screen readers और keyboard navigation के साथ अच्छे से काम करें।
frontend-patterns
280kआपके एजेंट को React और Next.js में frontend development के modern patterns लागू करने में मदद करता है। यह performance optimize करता है, state manage करता है और best practices फॉलो करवाता है।