View source: R/custom_modules.R
create_module | R Documentation |
Create the template of a new shinyscholar module.
create_module(
id,
dir,
map = FALSE,
result = FALSE,
rmd = FALSE,
save = FALSE,
download = FALSE,
async = FALSE,
init = FALSE
)
id |
character. The id of the module. |
dir |
character. Path to the parent directory containing the application |
map |
logical. Whether or not the module should support modifying the map. |
result |
logical. Whether or not the module should support showing information in the Result tab. |
rmd |
logical. Whether or not the module should add Rmd code to the Session Code download. |
save |
logical. Whether or not the module has some custom data to save when the user saves the current session. |
download |
logical. Whether or not the module should add code to handle downloading a file. |
async |
logical. Whether or not the module will operate asynchronously. |
init |
logical. Whether or not the function is being used inside of the init function |
No return value, called for side effects
register_module
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.