Creating Production-Ready Shiny Apps
summary
Turns a vanilla Old Faithful Shiny app into a proper R package with documented exports and zero R CMD check errors, uses usethis and roxygen2 to generate DESCRIPTION, NAMESPACE and manual pages, pins dependencies with renv, extracts app logic into testable functions and adds testthat tests (some auto-generated by ChatGPT), wires up CI with GitHub Actions, builds a Docker image using rocker + renv cache and successfully runs the app in a container.
AI-written summary · about
chapters (12)
- 0:00Production-ready Shiny apps
- 2:58Why productionizing matters
- 8:41Vanilla Shiny app start
- 10:07Convert to R package
- 25:00Package checks and fixes
- 33:20Using ChatGPT for documentation
- 49:17Pin versions with renv
- 57:46Test app logic
- 1:09:35Test cases with ChatGPT
- 1:15:00CI/CD with GitHub Actions
- 1:22:20Deploy with Docker
- 1:30:17Summary and Q&A
related talks
15mA Robust Framework for Automated Shiny App Testing
14mR Shiny - From Conception to the Cloud
15mA Robust Framework for Automated Shiny App Testing
14mR Shiny - From Conception to the Cloud
29mProductionizing R scripts in the cloud
21mR in production
50mShiny in production: Principles, practices, and tools
19mThe Road to Easier Shiny App Deployments
