contains module data, functions, etc.
Public fields
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 scriptauthor
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
Methods
Method print()
print module information and returns memory address
Method new()
constructor
Usage
ModuleEnvir$new(
module_id,
label_name,
script_path,
author = NULL,
version = "0",
packages = NULL,
.script_content = NULL,
rmd_path = NULL,
parent_env = globalenv()
)
Method get_or_new_exec_env()
get the corresponding ExecEnvir
with
shiny session
Arguments
session
shiny session; see shiny
domains
...
ignored
new
whether to force creating a new runtime environment if previous one already exists
Returns
an ExecEnvir
instance associated with
current module and given session
Method load_script()
load and compile script into registered
ExecEnvir
Arguments
session
shiny session; see shiny
domains
Method clean()
clean the module environment
Arguments
session
shiny session; see shiny
domains
session_id
shiny 'RAVE' ID, default is auto-generated
Examples
if (FALSE) {
module <- get_module('ravebuiltins', 'power_explorer')
module
#> Module Name: Power Explorer
#> Version: 0
#> Script Path: ...
#> Author(s):
}