Module Encapsulation
NEST CoreDev
Source:vignettes/blueprint/module_encapsulation.Rmd
module_encapsulation.RmdIntroduction
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 thetealmodule becomes more manageable, as it can function independently from thetealframework. This separation allows developers to maintain the module with ease. This approach has been successfully applied inRpackages dedicated totealmodule development, such asteal.modules.generalandteal.modules.clinical.Enhanced focus on output
tealmodule 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 thetealframework. When developed correctly, the module seamlessly integrates withteal.Facilitated collaboration
tealmodule development becomes an accessible entry point for developers interested in collaborating. This approach encourages user collaboration for the improvement oftealmodules, as developers gain a deeper understanding of the mechanics of thetealframework.