Skip to content

A modular shinydashboard based mostly on naming conventions

Notifications You must be signed in to change notification settings

fsiola/modularShinyDashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

modularShinyDashboard

A modular shinyDashboard based mostly on naming conventions

Usage

Create a folder inside "modules" folder containg the following files:

  • ui.R: this file holds the UI structure of your module and the link to be added to the sidebar.
  • server.R: this file holds the server strcuture of your module.
  • OnLoad.R: this file holds all run-once code of your module.

For reference, please check the HelloWorld module.

It is a good practice to name all variables inside a module with the same prefix to avoid naming problems between modules.

ui.R

You should create your UI just like any other Shiny page. There are two things you should do here:

  • The UI must be assigned to a tabItem variable with naming matching the "*TabPage*" pattern.
  • You must provide a menuItem variable with naming matching the "*LinkPage*" pattern.

server.R

Place here all your server functions that uses the $output Shiny variable.

OnLoad.R

Place here all functions from your module that should run only once the Shiny application is loaded.

About

A modular shinydashboard based mostly on naming conventions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages