AddModules.Rd
This function adds a module to a shiny app created by PREP.
AddModules( vModuleIDs = c(), strPackageDirectory = getwd(), strModuleDirectory = "", strType = "package", bDashboard = TRUE, strUIWrapper = NULL, strSidebarWrapper = NULL, strServerWrapper = NULL, strUITemplate = NULL, strServerTemplate = NULL, lCustomParameters = NULL )
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 |