View source: R/check_mod_info.R
check_mod_info | R Documentation |
This function checks that mod header information matches what's in the database to ensure that modules will be called and stitched correctly.
check_mod_info(modName, shinyMgrPath, verbose = TRUE)
modName |
The name of the module |
shinyMgrPath |
The path to the shinymgr folder. |
verbose |
Whether to print updates to the console (default = TRUE) |
A list containing dataframes of logicals indicating whether fields are consistent between the module script header and the database. These include: 1. Data for the modules table 2. Data for the modFunctionArguments table 3. Data for the modFunctionReturns table A value of TRUE indicates that the fields match, and FALSE indicates a mismatch.
The check_mod_info() function is described in the "shinymgr_modules" tutorial.
The shinymgr learnr tutorials include, in order:
learnr::run_tutorial(name = "intro", package = "shinymgr")
learnr::run_tutorial(name = "shiny", package = "shinymgr")
learnr::run_tutorial(name = "modules", package = "shinymgr")
learnr::run_tutorial(name = "app_modules", package = "shinymgr")
learnr::run_tutorial(name = "tests", package = "shinymgr")
learnr::run_tutorial(name = "shinymgr", package = "shinymgr")
learnr::run_tutorial(name = "database", package = "shinymgr")
learnr::run_tutorial(name = "shinymgr_modules", package = "shinymgr")
learnr::run_tutorial(name = "apps", package = "shinymgr")
learnr::run_tutorial(name = "analyses", package = "shinymgr")
learnr::run_tutorial(name = "reports", package = "shinymgr")
learnr::run_tutorial(name = "deployment", package = "shinymgr")
Other module:
mod_header_parser()
,
mod_init()
,
mod_register()
# establish shinyMgrPath
parentPath <- tempdir()
shinyMgrPath <- paste0(parentPath, '/shinymgr')
# Create a demo database
shinymgr_setup(parentPath = parentPath, demo = TRUE)
#check info for different modules
check_mod_info(modName = "subset_rows", shinyMgrPath = shinyMgrPath)
check_mod_info(modName = "add_noise", shinyMgrPath = shinyMgrPath)
# Remove demo database
unlink(shinyMgrPath, recursive = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.