shiny-for-r
하는 일
이 스킬은 R의 Shiny 패키지로 대화형 웹 앱을 만드는 방법을 에이전트에게 가르칩니다. 반응성이나 레이아웃 같은 작업별 집중 안내로 연결되는 색인 역할을 합니다.
사용하는 경우
- ✓입력과 출력이 있는 Shiny for R 앱을 만들거나 고치려 할 때.
- ✓재사용 가능한 Shiny 모듈이나 카드와 테마가 있는 앱 레이아웃이 필요할 때.
- ✓반응형 값, 비동기 작업, 또는 Shiny 앱 디버깅에 도움이 필요할 때.
스킬 링크
https://github.com/rstudio/shiny/blob/main/inst/skills/shiny-for-r/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“사용자가 지역을 고르면 차트가 업데이트되는 R용 Shiny 앱을 만들도록 도와주세요.”
매주 새 스킬 5개. 읽는 데 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 모듈이란 무엇인가요?
복사될 때 id가 충돌하지 않도록 UI와 서버 코드를 묶은 재사용 가능한 조각입니다.
배포도 다루나요?
아니요. 스킬은 배포와 앱 성능 조정은 다루지 않는다고 설명합니다.
상세 정보
작성자의 원본 설명
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
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
비슷한 스킬
angular-developer
280k에이전트가 Angular 코드를 만들고 프로젝트 구조를 조언하도록 돕습니다. 새 프로젝트 시작, 코드 부분 생성, 성능과 접근성 개선에 유용합니다.
frontend-a11y
280k모든 사람이 웹 인터페이스를 쓸 수 있도록 에이전트를 돕습니다. 웹사이트와 앱이 화면 읽기 프로그램과 키보드 탐색에서 잘 작동하도록 합니다.
frontend-patterns
280k프론트엔드 개발의 현대적인 패턴을 적용하도록 에이전트를 돕습니다. React와 Next.js에서 성능을 최적화하고, 상태를 관리하며, 모범 사례를 따릅니다.