{"id":18174497,"url":"https://github.com/ashbaldry/shiny.destroy","last_synced_at":"2025-07-30T16:22:24.077Z","repository":{"id":238993487,"uuid":"797863011","full_name":"ashbaldry/shiny.destroy","owner":"ashbaldry","description":"Safely remove dynamic shiny modules","archived":false,"fork":false,"pushed_at":"2024-09-16T19:53:41.000Z","size":409,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-02T16:08:32.977Z","etag":null,"topics":["r","shiny"],"latest_commit_sha":null,"homepage":"https://ashbaldry.github.io/shiny.destroy/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ashbaldry.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-08T16:31:29.000Z","updated_at":"2024-09-16T19:52:19.000Z","dependencies_parsed_at":"2024-05-09T11:00:47.874Z","dependency_job_id":"c7670a9f-d436-406e-92d3-7d5b08b2266f","html_url":"https://github.com/ashbaldry/shiny.destroy","commit_stats":null,"previous_names":["ashbaldry/shiny.destroy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashbaldry%2Fshiny.destroy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashbaldry%2Fshiny.destroy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashbaldry%2Fshiny.destroy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashbaldry%2Fshiny.destroy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashbaldry","download_url":"https://codeload.github.com/ashbaldry/shiny.destroy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246662359,"owners_count":20813737,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["r","shiny"],"created_at":"2024-11-02T16:03:08.468Z","updated_at":"2025-04-01T15:31:38.989Z","avatar_url":"https://github.com/ashbaldry.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"# shiny.destroy\n\n\u003c!-- badges: start --\u003e\n  \n[![R-CMD-check](https://github.com/ashbaldry/shiny.destroy/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/ashbaldry/shiny.destroy/actions/workflows/R-CMD-check.yaml)\n  \n\u003c!-- badges: end --\u003e\n\nThe aim of {shiny.destroy} is to allow inputs and modules created in a shiny application to be removed without keeping any trace of them within the realm of the shiny application.\n\n## Installation\n\nInstall the latest version of {shiny.destroy} on GitHub\n\n```r\nrequire(\"remotes\")\nremotes::install_github(\"ashbaldry/shiny.destroy\")\n```\n\n## Usage\n\nThere are two types of objects that {shiny.destroy} handles: inputs and modules.\n\n### Input\n\nUse the function `removeInput` to remove the desired input. This is a wrapper around `shiny::removeUI`, but includes ways to reference the input server-side, and updates any reactives and/or outputs that depend on that input instantly.\n\n### Module\n\nPrior to the application loading.\n\n## Example\n\n![Example shiny.destroy application](./man/figures/example_app.gif)\n\nThe code for this example is available in the [examples directory](/inst/examples-shiny)\n\n## Limitations\n\nTo include sub-modules within the destroyable module, the server-side module will need to be passed through `makeModuleServerDestroyable` and included as an argument to the parent module to ensure those observers are safely removed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashbaldry%2Fshiny.destroy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashbaldry%2Fshiny.destroy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashbaldry%2Fshiny.destroy/lists"}