项目作者: Novartis

项目描述 :
An Object-Oriented approach to Shiny modules
高级语言: R
项目地址: git://github.com/Novartis/tidymodules.git
创建时间: 2019-08-20T15:16:40Z
项目社区:https://github.com/Novartis/tidymodules

开源协议:Other

下载


" class="reference-link">tidymodules

build
status
lifecycle

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.
















































FeaturestidymodulesConventional modules
Programming style- {R6} OOP *
- Semantic reference
Functional
Namespace management- automatic/generated
- ID based lookup
- Grouping
- manual management
- must match between ui and server
Module communication- new module input/output port structure
- module ports linked
via tidy operators
- automatic network diagram
- parameter passing via module server()
- challenging to
manage for complex app
Inheritance- class inheritance
- port inheritance for nested modules
NA
Session management- flexible user session management
- Caching of modules coming
soon
NA

* OOP = Object Oriented Programming

Installation

You can install the most recent version of {tidymodules} from
GitHub with:

  1. library(devtools)
  2. install_github("Novartis/tidymodules")

Examples

You can quickly launch an example after installing the R package by
running the following.

  1. tidymodules::showExamples(4)

Some examples have been deployed on shinyapp.io, such as:

Learning More

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”.

Code of Conduct

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.

Acknowledgment

  • The SCC team members @ NVS for their valuable feedbacks
  • 2019 Summer interns (Marzi, Stephen and Renan) for contributing to
    testing the framework and implementing the demo example 4 listed
    above.
  • Eric Nantz for accepting to introduce tidymodules in his
    e-poster @
    rstudio::conf 2020

Licence

  1. Copyright 2020 Novartis AG
  2. Licensed under the Apache License, Version 2.0 (the "License");
  3. you may not use this file except in compliance with the License.
  4. You may obtain a copy of the License at
  5. http://www.apache.org/licenses/LICENSE-2.0
  6. Unless required by applicable law or agreed to in writing, software
  7. distributed under the License is distributed on an "AS IS" BASIS,
  8. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  9. See the License for the specific language governing permissions and
  10. limitations under the License.