https://github.com/aryoda/R_shiny_post_mortem_analysis_training
Training code and presentation: Use logging, error-handling and post-mortem analysis for R Shiny Apps
https://github.com/aryoda/R_shiny_post_mortem_analysis_training
Last synced: 21 days ago
JSON representation
Training code and presentation: Use logging, error-handling and post-mortem analysis for R Shiny Apps
- Host: GitHub
- URL: https://github.com/aryoda/R_shiny_post_mortem_analysis_training
- Owner: aryoda
- License: gpl-3.0
- Created: 2023-02-12T23:41:15.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-24T11:43:03.000Z (about 2 years ago)
- Last Synced: 2024-11-02T16:08:25.965Z (6 months ago)
- Language: R
- Size: 3.55 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - aryoda/R_shiny_post_mortem_analysis_training - Training code and presentation: Use logging, error-handling and post-mortem analysis for R Shiny Apps (R)
README
# R Shiny post mortem analysis training
## What is `Shiny`?
Shiny is an R package that makes it easy to build interactive web apps
using the programming language [R](https://www.r-project.org/).[`Shiny`](https://shiny.rstudio.com/) is a product of [posit](https://posit.co/)
(formerly known as `RStudio`)-## What is "post-mortem analysis" and when to use it
"Post-mortem analysis" means
- to analyze an (R) memory dump
- stored in a file (via the package [tryCatchLog](https://github.com/aryoda/tryCatchLog))
- when an R app throws an error (or even "crashes"/stops running)
- in a new R session (= not debugging the running code!)."Post-mortem anaylsis" ist most helpful for
- sporadic (non-reproducible) bugs (since the memory dump contains the state when the error occured)
- Debugging is not possible (e.g. on a production remote machine)## Purpose of this repo
This repo contains
- R example code and
- a presentationto teach how to cope with errors in Shiny Apps, mainly:
- Logging
- Error-handling
- Post-mortem analysis (using [tryCatchLog](https://github.com/aryoda/tryCatchLog))## TODOs
- Document limitations of post-mortem analysis due to different R version,
missing packages (not installed), different OS...
- a lot more I guess (please open an issue to request adding or modifying something)...