Shiny modules is an autonomous shiny app that help to contanerize the code. Therefore they need:
- a
ui
to generate the layout of the interface - a
server
to make all the computation - a
demo
to test if everything works
It consumes a reactive variable (data)
The magic of modules comes because these functions are constructed in a special way that creates a “namespace”. So far, when writing an app, the names (ids) of the controls are global: all parts of your server function can see all parts of your UI. Modules give you the ability to create controls that can only be seen from within the module. This is called a namespace because it creates “spaces” of “names” that are isolated from the rest of the app.
Shiny modules have two big advantages. Firstly, namespacing makes it easier to understand how your app works because you can write, analyse, and test individual components in isolation. Secondly, because modules are functions they help you reuse code; anything you can do with a function, you can do with a module.
For more informations, follow this link
This package provide different modules that you can use as they are or that you can easily reusable through your apps. The aim is to provide simple yet effective shiny sub-unit to factorise your code and therefore improve the reading quality anf reusability.
The following modules are available:
- Data Management
- dataImport: import one dataframe from csv, xlsx, xls or rda
- selectVar: select a column based on a dataframe and filtering
- Export
- exportPlot: export given plot in different file format
- Plots
- plotHist: create a histogram from a numeric variable
For information about the organisation of this project please find the organisation.md file.
Contribution guidelines can be found in the CONTRIBUTING.md file.
A project board is used to follow the works in progress.