Module Encapsulation
NEST CoreDev
Source:vignettes/blueprint/module_encapsulation.Rmd
module_encapsulation.Rmd
Introduction
The teal
framework leverages the shiny
module concept to enable encapsulation of analytical actions in
teal
modules, while maintaining seamless communication
between the modules and the application.
Benefits
By implementing the modular app technique from the shiny module into
the creation of the teal
module, several benefits are
realized:
Streamlined maintenance
The development of theteal
module becomes more manageable, as it can function independently from theteal
framework. This separation allows developers to maintain the module with ease. This approach has been successfully applied inR
packages dedicated toteal
module development, such asteal.modules.general
andteal.modules.clinical
.Enhanced focus on output
teal
module developers can concentrate solely on refining parameters or encoding, and output aspects (such as data summarization and visualization) without the need to concern themselves with the intricacies of theteal
framework. When developed correctly, the module seamlessly integrates withteal
.Facilitated collaboration
teal
module development becomes an accessible entry point for developers interested in collaborating. This approach encourages user collaboration for the improvement ofteal
modules, as developers gain a deeper understanding of the mechanics of theteal
framework.