Modularized Shiny app example using renderUI
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
rsconnect/shinyapps.io/xplor
.gitignore
DESCRIPTION
README.md
global.R
module_example_2.Rproj
server.R
sidebar.R
ui.R

README.md

module_example_2

A Shiny module is a piece of code that is included as part of a Shiny app. This simple modularized shiny app is based on the Hello Shiny example that comes with the Shiny package. You can run it by typing the following in the R console:

library(shiny)
runExample("01_hello")

Hello Shiny uses the sidebarLayout, with a sliderInput in the sidebarPanel and a histogram displayed in the mainPanel. My version of the app modularizes the sidebarPanel part of the sidebarLayout.

This version is the same as module_example_1, exept that it uses renderUI and a switch() to render the slider.