| ModuleEnvir | R Documentation |
contains module data, functions, etc.
cache_envcache environment for module
module_idmodule ID, unique
label_namecorresponding module name
script_pathcompiled module scripts
scriptif script_path not exists, alternative script
authorwho wrote the module not often used
versionmodule version
packagesthe packages to be loaded for the module
rmd_pathdeprecated
parent_envparent environment of the module, usually global environment or package environment
from_packagewhether the module is compiled from another R
package. This value is required to be true since "rave-0.1.9".
package_namewhich package does the module belong to?
sidebar_widthinput panel width, from 1 to 11
info()print module information
ModuleEnvir$info()
none
print()print module information and returns memory address
ModuleEnvir$print(...)
...ignored
new()constructor
ModuleEnvir$new( module_id, label_name, script_path, author = NULL, version = "0", packages = NULL, .script_content = NULL, rmd_path = NULL, parent_env = globalenv() )
module_id, label_name, script_path, author, versionsee fields
packages, parent_env, rmd_pathsee fields
.script_contentinternal use
get_or_new_exec_env()get the corresponding ExecEnvir with
shiny session
ModuleEnvir$get_or_new_exec_env( session = getDefaultReactiveDomain(), ..., new = FALSE )
sessionshiny session; see shiny domains
...ignored
newwhether to force creating a new runtime environment if previous one already exists
an ExecEnvir instance associated with
current module and given session
load_script()load and compile script into registered
ExecEnvir
ModuleEnvir$load_script(session = getDefaultReactiveDomain())
sessionshiny session; see shiny domains
none
render_ui()generate 'HTML' tags
ModuleEnvir$render_ui(session = getDefaultReactiveDomain())
sessionshiny session; see shiny domains
'HTML' tags
clean()clean the module environment
ModuleEnvir$clean(session = getDefaultReactiveDomain(), session_id)
sessionshiny session; see shiny domains
session_idshiny 'RAVE' ID, default is auto-generated
## Not run:
module <- get_module('ravebuiltins', 'power_explorer')
module
#> Module Name: Power Explorer
#> Version: 0
#> Script Path: ...
#> Author(s):
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.