The tidymodules R package is built on top of shiny module using R6 to provide a new object-oriented programming (OOP) approach for module development, new module interface using input/output ports and a set of tidy operators for handling cross-module communication.
The main features of tidymodules and its comparison with conventional Shiny modules are presented in the table below.
Features | tidymodules | Conventional modules | |
---|---|---|---|
Programming style |
|
Functional | |
Namespace management |
|
|
|
Module communication |
|
|
|
Inheritance |
|
NA | |
Session management |
|
NA |
* OOP = Object Oriented Programming
You can install the most recent version of tidymodules from GitHub with:
library(devtools)
install_github("Novartis/tidymodules")
You can quickly launch an example after installing the R package by running the following.
::showExamples(4) tidymodules
Some examples have been deployed on shinyapp.io, such as:
Please review the Get Started page for a high level introduction to tidymodules and its usage in developing Shiny apps.
If you are interested to develop modules using tidymodules, we recommend reading the vignettes under “Articles”.
Please note that the tidymodules is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
2020 Novartis AG
Copyright
2.0 (the "License");
Licensed under the Apache License, Version in compliance with the License.
you may not use this file except
You may obtain a copy of the License at
://www.apache.org/licenses/LICENSE-2.0
http
in writing, software
Unless required by applicable law or agreed to "AS IS" BASIS,
distributed under the License is distributed on an
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.for the specific language governing permissions and
See the License limitations under the License.