This function adds a module to a shiny app created by PREP.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
vModuleIDs |
IDs of the shiny module to be added to the application. The source code for each module should be saved in strModuleDirectory with files named "mod_strModuleIDUI.R" and mod_strModuleIDServer.R". If desired, submodules may also be included using the following naming convention "mod_strModuleID_XXX.R". Also, note that all whitespace and non-alphanumeric characters are removed when determining function names. |
strPackageDirectory |
The directory where the PREP shiny app located. |
strModuleDirectory |
Location of the Module to be added ot the app. Defaults to inst/_shared/modules. |
strType |
type of application - valid options are "package" and "standalone" |
bDashboard |
should modules be added to a shinyDashboard? If True, module UI is wrapped in a shinyDashboard::tabItem and a shinyDashboard::menuItem is added. Default: True |
strUIWrapper |
Wrapper for calling module UI |
strSidebarWrapper |
Wrapper for calling sidebar UI |
strServerWrapper |
Wrapper for calling Server code |
strUITemplate |
UI whisker Template to use when creating new Modules |
strServerTemplate |
Server whisker Template to use when creating new Modules |
lCustomParameters |
List of Custom Parameters for new modules |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.