add-shiny-module
Add a shiny module to an R package the crow way, with foo_ui, foo_server and a foo_app testbed from crow::module2app(), testServer() tests covering all server logic, and shinytest2 screenshots of the interaction inserted into the docs. Use when creating or restructuring a shiny module in an R package.
- Compatibility
- Requires R, an R package with testthat 3e, and the R packages crow, shiny, shinytest2, pkgload and withr. Screenshots need Chrome.
Pinned to revision 53b3db44217e, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/add-shiny-module/SKILL.md
- skills/add-shiny-module/assets/module.R
- skills/add-shiny-module/assets/test-module.R
- skills/add-shiny-module/scripts/new-module.R
- skills/add-shiny-module/scripts/screenshot-module.R
Every link opens the file at its source, pinned to the revision this page describes.