ModuleEnvir | R Documentation |
contains module data, functions, etc.
cache_env
cache environment for module
module_id
module ID, unique
label_name
corresponding module name
script_path
compiled module scripts
script
if script_path
not exists, alternative script
author
who wrote the module not often used
version
module version
packages
the packages to be loaded for the module
rmd_path
deprecated
parent_env
parent environment of the module, usually global environment or package environment
from_package
whether the module is compiled from another R
package. This value is required to be true since "rave-0.1.9"
.
package_name
which package does the module belong to?
sidebar_width
input 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, version
see fields
packages, parent_env, rmd_path
see fields
.script_content
internal use
get_or_new_exec_env()
get the corresponding ExecEnvir
with
shiny session
ModuleEnvir$get_or_new_exec_env( session = getDefaultReactiveDomain(), ..., new = FALSE )
session
shiny session; see shiny domains
...
ignored
new
whether 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())
session
shiny session; see shiny domains
none
render_ui()
generate 'HTML' tags
ModuleEnvir$render_ui(session = getDefaultReactiveDomain())
session
shiny session; see shiny domains
'HTML' tags
clean()
clean the module environment
ModuleEnvir$clean(session = getDefaultReactiveDomain(), session_id)
session
shiny session; see shiny domains
session_id
shiny '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.