https://github.com/PaulC91/reactive-modules
shiny app example that sources + calls modules with user inputs
https://github.com/PaulC91/reactive-modules
modules r shiny
Last synced: 4 months ago
JSON representation
shiny app example that sources + calls modules with user inputs
- Host: GitHub
- URL: https://github.com/PaulC91/reactive-modules
- Owner: PaulC91
- Created: 2018-05-08T15:39:14.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-24T10:07:34.000Z (almost 7 years ago)
- Last Synced: 2024-08-13T07:15:28.140Z (8 months ago)
- Topics: modules, r, shiny
- Language: R
- Homepage:
- Size: 9.77 KB
- Stars: 5
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - PaulC91/reactive-modules - shiny app example that sources + calls modules with user inputs (R)
README
# Reactively source + remove + call shiny modules with menu selectors
This is an example of how you can use a shiny menu selector to reactively source module scripts then use the functions loaded in to the global environment to call the module UI and Server.
When the user selects a different tab from the menu, the functions in the global environment that are no longer needed will be removed.
This could be useful for apps that use lots of modules across several pages, reducing the number of functions required in memory at any one time.
You can run this app locally with `shiny::runGitHub(repo = "PaulC91/reactive-modules")`
# TODO
* Find method for sourcing/removing/calling modules from within each session environment