contains module data, functions, etc.
Public fields
cache_envcache environment for module
module_idmodule ID, unique
label_namecorresponding module name
script_pathcompiled module scripts
scriptif
script_pathnot exists, alternative scriptauthorwho 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
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
sessionshiny session; see shiny
domains...ignored
newwhether 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
sessionshiny session; see shiny
domains
Method clean()
clean the module environment
Arguments
sessionshiny session; see shiny
domainssession_idshiny 'RAVE' ID, default is auto-generated
Examples
if (FALSE) { # \dontrun{
module <- get_module('ravebuiltins', 'power_explorer')
module
#> Module Name: Power Explorer
#> Version: 0
#> Script Path: ...
#> Author(s):
} # }