Tutorial by Examples

Shiny is an R package developed by RStudio that allows the creation of web pages to interactively display the results of an analysis in R. There are two simple ways to create a Shiny app: in one .R file, or in two files: ui.R and server.R. A Shiny app is divided into two parts: ui: A user...
You can create a set of radio buttons used to select an item from a list. It's possible to change the settings : selected : The initially selected value (character(0) for no selection) inline : horizontal or vertical width It is also possible to add HTML. library(shiny) ui <- fluidPa...
Create a group of checkboxes that can be used to toggle multiple choices independently. The server will receive the input as a character vector of the selected values. library(shiny) ui <- fluidPage( checkboxGroupInput("checkGroup1", label = h3("This is a Checkbox group&...
Create a select list that can be used to choose a single or multiple items from a list of values. library(shiny) ui <- fluidPage( selectInput("id_selectInput", label = HTML('<B><FONT size="3">What is your favorite color ?</FONT></B&g...
You can launch an application in several ways, depending on how you create you app. If your app is divided in two files ui.R and server.R or if all of your app is in one file. 1. Two files app Your two files ui.R and server.Rhave to be in the same folder. You could then launch your app by running ...
FunctionWidgetactionButtonAction ButtoncheckboxGroupInputA group of check boxescheckboxInputA single check boxdateInputA calendar to aid date selectiondateRangeInputA pair of calendars for selecting a date rangefileInputA file upload control wizardhelpTextHelp text that can be added to an input form...
debug() and debugonce() won't work well in the context of most Shiny debugging. However, browser() statements inserted in critical places can give you a lot of insight into how your Shiny code is (not) working. See also: Debugging using browser() Showcase mode Showcase mode displays your app alo...

Page 1 of 1