SlideShare a Scribd company logo
5
Most read
10
Most read
16
Most read
R Shiny
An Introduction to
Making an Interactive
Web Application
Chloe Thomas
ScHARR, University of Sheffield
What is R shiny?
How does it work?
Do I need to know how to code in HTML?
Where can I get more information?
A web application framework for R that allows you to turn your
data into an interactive web App.
Shiny apps have two components:
- user interface script (controls layout and appearance by
converting R code into HTML)
- server script (contains the code needed to build the app)
No knowledge of HTML, JavaScript or CSS is required. However, you
can make your apps more interesting if you know some HTML.
There are some excellent tutorials and lots of links to more
information at http://shiny.rstudio.com/
Getting Started
> install.packages("shiny")
> library(shiny)
> runApp("my_app")
As a minimum, every shiny app has two R scripts (named ui and server) saved
within the same directory (e.g. “my_app”).
ui.R
server.R
Other scripts (written in standard R code), libraries and data can be called by the
server script if they are needed, using standard R commands above the shinyServer
function.
shinyUI(fluidPage(
))
shinyServer(function(input, output) {
})
The fluidPage function allows the display to
adjust automatically to the browser dimensions.
The unnamed function contains
the code needed to run the app.
The User Interface (ui.R)
# ui.R
shinyUI(fluidPage(
titlePanel("title panel"),
sidebarLayout(position = "right",
sidebarPanel( "sidebar panel"),
mainPanel("main panel")
)
))
A series of nested shiny
functions control the
layout of the content.
sidebarLayout is a
function with two
compulsory arguments,
both themselves functions
(sidebarPanel and
mainPanel). An optional
argument controls the
position of the panels.
Text is written as a
character string inside
quotation marks.
absolutePanel (fixedPanel) Panel with absolute positioning
bootstrapPage (basicPage) Create a Bootstrap page
column
Create a column within a UI
definition
conditionalPanel Conditional Panel
fixedPage (fixedRow)
Create a page with a fixed
layout
fluidPage (fluidRow) Create a page with fluid layout
headerPanel Create a header panel
helpText Create a help text element
icon Create an icon
mainPanel Create a main panel
navbarPage (navbarMenu)
Create a page with a top level
navigation bar
navlistPanel Create a navigation list panel
pageWithSidebar Create a page with a sidebar
sidebarLayout Layout a sidebar and main area
sidebarPanel Create a sidebar panel
tabPanel Create a tab panel
tabsetPanel Create a tabset panel
titlePanel
Create a panel containing an
application title.
inputPanel Input panel
flowLayout Flow layout
splitLayout Split layout
verticalLayout Lay out UI elements vertically
wellPanel Create a well panel
withMathJax
Load the MathJax library and
typeset math expressions
Shiny User Interface Functions
Formatting Text
To make things look a bit more interesting there are lots of shiny commands that can
alter the text colour, style and size. Alternatively, if you are familiar with HTML, you
can write HTML code directly inside HTML("").
shiny function HTML5 equivalent Creates
p <p> A paragraph of text
h1 <h1> A first level header
h2 <h2> A second level header
h3 <h3> A third level header
h4 <h4> A fourth level header
h5 <h5> A fifth level header
h6 <h6> A sixth level header
a <a> A hyper link
br <br> A line break (e.g. a blank line)
div <div> A division of text with a uniform style
span <span>
An in-line division of text with a
uniform style
pre <pre> Text ‘as is’ in a fixed width font
code <code> A formatted block of code
img <img> An image
strong <strong> Bold text
em <em> Italicized text
HTML
Directly passes a character string as
HTML code
Adding Images
# ui.R
shinyUI(fluidPage(
titlePanel("My Shiny App"),
sidebarLayout(
sidebarPanel(),
mainPanel(
img(src = “my_image.png", height = 400, width = 400)
)
)
))
The image file must be placed inside a folder
named www within the same directory as the
ui and server scripts. Any file placed in the
www folder will be shared with the web
browser.
Adding Widgets
Widgets are interactive web elements. A series of inbuild shiny functions allows widgets
to be easily added to webpages. Each function has several arguments. It must have at
least a name (used to access its value, but not visible) and a label (visible on the page).
Both are character strings. Other arguments are widget specific.
# ui.R
shinyUI(fluidPage(
titlePanel("Basic widgets"),
fluidRow(
column(3,
h3("Buttons"),
actionButton("action", label = "Action"),
br(),
br(),
submitButton("Submit")),
column(3,
h3("Single checkbox"),
checkboxInput("checkbox", label = "Choice A", value = TRUE)),
column(3,
checkboxGroupInput("checkGroup",
label = h3("Checkbox group"),
choices = list("Choice 1" = 1, "Choice 2" = 2, "Choice 3" = 3),
selected = 1)),
column(3,
dateInput("date",
label = h3("Date input"),
value = "2014-01-01"))
)
))
Adding Widgets Action
button
Submit
button
Single
checkbox
(whether
pre-selected)
Checkbox
group (list
choices and
which pre-
selected)
Date input
Adding Reactive Output
Widgets allow users to input their choices. Reactive output is a response to those choices.
Programming it into an app is a two-step process:
- Add an R object to the user interface to indicate where it should be displayed.
- Add instructions on how to build the object in the server
Output function creates
htmlOutput raw HTML
imageOutput image
plotOutput plot
tableOutput table
textOutput text
# ui.R
shinyUI(fluidPage(
titlePanel("My Shiny App"),
sidebarLayout(
sidebarPanel(
sliderInput(“value",
label = “Value of interest:",
min = 0, max = 100, value = 50)
),
mainPanel(
textOutput("text1")
)
)
))
Output functions have one argument,
which is a name (character string). In
this case “text1”. This is used in the
server to identify the output.
Adding Reactive Output
The unnamed function inside shinyServer contains all the code that needs to be
updated when a user accesses the app. All R output objects used in the ui need to be
defined in server using the prefix output$ followed by the name of the object.
e.g. output$text1
The element should be defined using one of the shiny render* functions – this should
be chosen to reflect the type of output. Each render function takes a single argument
(R expression) surrounded by braces.
# server.R
shinyServer(function(input, output) {
output$text1 <- renderText({
"You have selected" , input$value)
})
}
)
render function creates
renderImage
images (saved as a
link to a source file)
renderPlot plots
renderPrint any printed output
renderTable
data frame, matrix,
other table like
structures
renderText character strings
renderUI
a Shiny tag object or
HTML
The Server
The server is where all the code is located for execution of the app. How frequently
code is run depends upon where it is placed within the server script.
Code placed here will be run once
when the app is launched.
shinyServer will be executed and the
unnamed function saved. Good
place to source other scripts, read
data sets and load libraries.
Code placed here will run once each
time a new user visits the app. The
unnamed function will run once and
save a distinct set of reactive objects
for each user. Good place to put
objects that record a user’s session.
Code placed here will run every
time the user changes the widget
that this particular output depends
upon. Important to not put
unnecessary code here as it will
slow down the entire app.
Example of a shiny app with code
More complex shiny functions
Reactive Expressions
Like render functions but they allow you to decide which parts of the app update when,
for more streamlined computation.
Absolute Positioning
Allows personalisation of the user interface of the app using a grid based system.
Interactive Visualisations
Allows you to make interactive maps and charts using JavaScript libraries like Google
Charts, Leaflet and d3.
Progress Bars
So users know that something is happening whilst waiting for a calculation to complete.
Integration with R Markdown
To make interactive documents.
Shiny Server Pro (not free)
Allows user authentication and personalisation of user interface.
A slightly more complex shiny app
Sharing apps
Two main options: 1) Share the files with users that have R and know how to use it.
(e.g. email zip file directly, use GitHub to share files, run from a
web-link - runURl(“<the weblink>”)).
2) Share it as a web page.
Host an app yourself
e.g. For University of Sheffield apps, go through CICs - £100 per year for hosting on a
virtual server.
Shinyapps.io
Rstudio’s cloud hosting service for shiny apps. Four different levels of service, including a
free service (max 5 apps and 25 active hours per month). You retain complete control
over your app.
Shiny Server
A free downloadable programme that can be run on Linux servers. Shiny Server Pro is a
paid professional version that includes password authentification, administrator tools and
email support (starts at >$10,000 per year.)
General Comments
Shiny takes a bit of getting used to, but the tutorials give an excellent
introduction and there is lots of help online.
Really quick way of visually presenting your data interactively – great for
impact and engagement with the general public/customers/clients.
Can be frustrating switching between server and ui scripts when writing
reactive output. However, apparently now these can be combined into a
single script.
Can also be very frustrating when usual R commands don’t work the way you
might expect them to in the server.
Problems arise when trying to do more complicated things. A particular issue
is needing to create input that is itself reactive to other input – this is possible
but not straightforward.
Might not be the best solution if you want a professional looking app, with
complex functionality.
Shiny is still in development and if something doesn’t seem possible, it may
be worth contacting the developers and seeing whether they can help you.

More Related Content

PDF
Data Visualization With R
PPT
R programming slides
PPTX
Data visualization with R
PDF
Introduction to R Graphics with ggplot2
PPTX
2. R-basics, Vectors, Arrays, Matrices, Factors
PPTX
Chart and graphs in R programming language
PPTX
R language tutorial
PDF
Introduction to data analysis using R
Data Visualization With R
R programming slides
Data visualization with R
Introduction to R Graphics with ggplot2
2. R-basics, Vectors, Arrays, Matrices, Factors
Chart and graphs in R programming language
R language tutorial
Introduction to data analysis using R

What's hot (20)

PDF
Shiny in R
PPTX
Crash Course on R Shiny Package
PPTX
css.ppt
PPTX
React js
PPTX
Introduction to React JS for beginners
PDF
Introduction to back-end
PPT
JavaScript & Dom Manipulation
PPTX
React hooks
PDF
React & Redux
PDF
JavaScript - Chapter 11 - Events
PPT
Ppt of web development
PDF
WebAssembly Overview
PDF
React JS & Functional Programming Principles
PPTX
An Introduction To REST API
PDF
Vue, vue router, vuex
PDF
Javascript and DOM
PDF
Typescript in React: HOW & WHY?
PPTX
Front-End Web Development
PPTX
Css padding
PDF
CSS Day: CSS Grid Layout
Shiny in R
Crash Course on R Shiny Package
css.ppt
React js
Introduction to React JS for beginners
Introduction to back-end
JavaScript & Dom Manipulation
React hooks
React & Redux
JavaScript - Chapter 11 - Events
Ppt of web development
WebAssembly Overview
React JS & Functional Programming Principles
An Introduction To REST API
Vue, vue router, vuex
Javascript and DOM
Typescript in React: HOW & WHY?
Front-End Web Development
Css padding
CSS Day: CSS Grid Layout
Ad

Similar to Introduction to Shiny for building web apps in R (20)

PDF
R-Shiny Cheat sheet
PDF
Building interactive web app with shiny
PDF
shiny.pdf
PPTX
Introduction to Interactive Shiny Web Application
PDF
Introduction to interactive data visualisation using R Shiny
PDF
R scripts for statistics and dashboard designs
PDF
R programming for statistics and dash board
PPTX
Build web apps with R
PDF
A Tour of Building Web Applications with R Shiny
PDF
An R shiny demo for IDA MOOC facilitation, Developing Data Products
PDF
Visual Analytics for Linguistics - Day 5 ESSLLI 2017
PPTX
shiny_v1.pptx
PPTX
Building Shiny Application Series - Layout and HTML
PDF
Data Visualization: Introduction to Shiny Web Applications
PDF
Shiny r, live shared and explored
PPTX
data-visulisation-for-agile-analytics-workshop.pptx
PPT
A intro to (hosted) Shiny Apps
PDF
Building powerful dashboards with r shiny
PPTX
SportsDataViz using Plotly, Shiny and Flexdashboard - PlotCon 2016
PDF
December 2015 Meetup - Shiny: Make Your R Code Interactive - Craig Wang
R-Shiny Cheat sheet
Building interactive web app with shiny
shiny.pdf
Introduction to Interactive Shiny Web Application
Introduction to interactive data visualisation using R Shiny
R scripts for statistics and dashboard designs
R programming for statistics and dash board
Build web apps with R
A Tour of Building Web Applications with R Shiny
An R shiny demo for IDA MOOC facilitation, Developing Data Products
Visual Analytics for Linguistics - Day 5 ESSLLI 2017
shiny_v1.pptx
Building Shiny Application Series - Layout and HTML
Data Visualization: Introduction to Shiny Web Applications
Shiny r, live shared and explored
data-visulisation-for-agile-analytics-workshop.pptx
A intro to (hosted) Shiny Apps
Building powerful dashboards with r shiny
SportsDataViz using Plotly, Shiny and Flexdashboard - PlotCon 2016
December 2015 Meetup - Shiny: Make Your R Code Interactive - Craig Wang
Ad

More from Paul Richards (12)

PDF
Sheffield_R_ July meeting - Interacting with R - IDEs, Git and workflow
PDF
SheffieldR July Meeting - Multiple Imputation with Chained Equations (MICE) p...
PDF
Preparing and submitting a package to CRAN - June Sanderson, Sheffield R User...
PPTX
How to win $10m - analysing DOTA2 data in R (Sheffield R Users Group - May)
PDF
Introduction to knitr - May Sheffield R Users group
PDF
Querying open data with R - Talk at April SheffieldR Users Gp
PDF
OrienteeRing - using R to optimise mini mountain marathon routes - Pete Dodd ...
PPTX
Phylogeny in R - Bianca Santini Sheffield R Users March 2015
PDF
Intro to ggplot2 - Sheffield R Users Group, Feb 2015
PPTX
Sheffield R Jan 2015 - Using R to investigate parasite infections in Asian el...
PDF
Introduction to data.table in R
PDF
Dplyr and Plyr
Sheffield_R_ July meeting - Interacting with R - IDEs, Git and workflow
SheffieldR July Meeting - Multiple Imputation with Chained Equations (MICE) p...
Preparing and submitting a package to CRAN - June Sanderson, Sheffield R User...
How to win $10m - analysing DOTA2 data in R (Sheffield R Users Group - May)
Introduction to knitr - May Sheffield R Users group
Querying open data with R - Talk at April SheffieldR Users Gp
OrienteeRing - using R to optimise mini mountain marathon routes - Pete Dodd ...
Phylogeny in R - Bianca Santini Sheffield R Users March 2015
Intro to ggplot2 - Sheffield R Users Group, Feb 2015
Sheffield R Jan 2015 - Using R to investigate parasite infections in Asian el...
Introduction to data.table in R
Dplyr and Plyr

Recently uploaded (20)

PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
ai tools demonstartion for schools and inter college
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Understanding Forklifts - TECH EHS Solution
PDF
System and Network Administration Chapter 2
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PPTX
history of c programming in notes for students .pptx
PDF
AI in Product Development-omnex systems
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PPTX
Introduction to Artificial Intelligence
PDF
top salesforce developer skills in 2025.pdf
PDF
System and Network Administraation Chapter 3
CHAPTER 2 - PM Management and IT Context
ai tools demonstartion for schools and inter college
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
VVF-Customer-Presentation2025-Ver1.9.pptx
Understanding Forklifts - TECH EHS Solution
System and Network Administration Chapter 2
Odoo Companies in India – Driving Business Transformation.pdf
Odoo POS Development Services by CandidRoot Solutions
Which alternative to Crystal Reports is best for small or large businesses.pdf
How to Choose the Right IT Partner for Your Business in Malaysia
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
history of c programming in notes for students .pptx
AI in Product Development-omnex systems
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
Introduction to Artificial Intelligence
top salesforce developer skills in 2025.pdf
System and Network Administraation Chapter 3

Introduction to Shiny for building web apps in R

  • 1. R Shiny An Introduction to Making an Interactive Web Application Chloe Thomas ScHARR, University of Sheffield
  • 2. What is R shiny? How does it work? Do I need to know how to code in HTML? Where can I get more information? A web application framework for R that allows you to turn your data into an interactive web App. Shiny apps have two components: - user interface script (controls layout and appearance by converting R code into HTML) - server script (contains the code needed to build the app) No knowledge of HTML, JavaScript or CSS is required. However, you can make your apps more interesting if you know some HTML. There are some excellent tutorials and lots of links to more information at http://shiny.rstudio.com/
  • 3. Getting Started > install.packages("shiny") > library(shiny) > runApp("my_app") As a minimum, every shiny app has two R scripts (named ui and server) saved within the same directory (e.g. “my_app”). ui.R server.R Other scripts (written in standard R code), libraries and data can be called by the server script if they are needed, using standard R commands above the shinyServer function. shinyUI(fluidPage( )) shinyServer(function(input, output) { }) The fluidPage function allows the display to adjust automatically to the browser dimensions. The unnamed function contains the code needed to run the app.
  • 4. The User Interface (ui.R) # ui.R shinyUI(fluidPage( titlePanel("title panel"), sidebarLayout(position = "right", sidebarPanel( "sidebar panel"), mainPanel("main panel") ) )) A series of nested shiny functions control the layout of the content. sidebarLayout is a function with two compulsory arguments, both themselves functions (sidebarPanel and mainPanel). An optional argument controls the position of the panels. Text is written as a character string inside quotation marks.
  • 5. absolutePanel (fixedPanel) Panel with absolute positioning bootstrapPage (basicPage) Create a Bootstrap page column Create a column within a UI definition conditionalPanel Conditional Panel fixedPage (fixedRow) Create a page with a fixed layout fluidPage (fluidRow) Create a page with fluid layout headerPanel Create a header panel helpText Create a help text element icon Create an icon mainPanel Create a main panel navbarPage (navbarMenu) Create a page with a top level navigation bar navlistPanel Create a navigation list panel pageWithSidebar Create a page with a sidebar sidebarLayout Layout a sidebar and main area sidebarPanel Create a sidebar panel tabPanel Create a tab panel tabsetPanel Create a tabset panel titlePanel Create a panel containing an application title. inputPanel Input panel flowLayout Flow layout splitLayout Split layout verticalLayout Lay out UI elements vertically wellPanel Create a well panel withMathJax Load the MathJax library and typeset math expressions Shiny User Interface Functions
  • 6. Formatting Text To make things look a bit more interesting there are lots of shiny commands that can alter the text colour, style and size. Alternatively, if you are familiar with HTML, you can write HTML code directly inside HTML(""). shiny function HTML5 equivalent Creates p <p> A paragraph of text h1 <h1> A first level header h2 <h2> A second level header h3 <h3> A third level header h4 <h4> A fourth level header h5 <h5> A fifth level header h6 <h6> A sixth level header a <a> A hyper link br <br> A line break (e.g. a blank line) div <div> A division of text with a uniform style span <span> An in-line division of text with a uniform style pre <pre> Text ‘as is’ in a fixed width font code <code> A formatted block of code img <img> An image strong <strong> Bold text em <em> Italicized text HTML Directly passes a character string as HTML code
  • 7. Adding Images # ui.R shinyUI(fluidPage( titlePanel("My Shiny App"), sidebarLayout( sidebarPanel(), mainPanel( img(src = “my_image.png", height = 400, width = 400) ) ) )) The image file must be placed inside a folder named www within the same directory as the ui and server scripts. Any file placed in the www folder will be shared with the web browser.
  • 8. Adding Widgets Widgets are interactive web elements. A series of inbuild shiny functions allows widgets to be easily added to webpages. Each function has several arguments. It must have at least a name (used to access its value, but not visible) and a label (visible on the page). Both are character strings. Other arguments are widget specific.
  • 9. # ui.R shinyUI(fluidPage( titlePanel("Basic widgets"), fluidRow( column(3, h3("Buttons"), actionButton("action", label = "Action"), br(), br(), submitButton("Submit")), column(3, h3("Single checkbox"), checkboxInput("checkbox", label = "Choice A", value = TRUE)), column(3, checkboxGroupInput("checkGroup", label = h3("Checkbox group"), choices = list("Choice 1" = 1, "Choice 2" = 2, "Choice 3" = 3), selected = 1)), column(3, dateInput("date", label = h3("Date input"), value = "2014-01-01")) ) )) Adding Widgets Action button Submit button Single checkbox (whether pre-selected) Checkbox group (list choices and which pre- selected) Date input
  • 10. Adding Reactive Output Widgets allow users to input their choices. Reactive output is a response to those choices. Programming it into an app is a two-step process: - Add an R object to the user interface to indicate where it should be displayed. - Add instructions on how to build the object in the server Output function creates htmlOutput raw HTML imageOutput image plotOutput plot tableOutput table textOutput text # ui.R shinyUI(fluidPage( titlePanel("My Shiny App"), sidebarLayout( sidebarPanel( sliderInput(“value", label = “Value of interest:", min = 0, max = 100, value = 50) ), mainPanel( textOutput("text1") ) ) )) Output functions have one argument, which is a name (character string). In this case “text1”. This is used in the server to identify the output.
  • 11. Adding Reactive Output The unnamed function inside shinyServer contains all the code that needs to be updated when a user accesses the app. All R output objects used in the ui need to be defined in server using the prefix output$ followed by the name of the object. e.g. output$text1 The element should be defined using one of the shiny render* functions – this should be chosen to reflect the type of output. Each render function takes a single argument (R expression) surrounded by braces. # server.R shinyServer(function(input, output) { output$text1 <- renderText({ "You have selected" , input$value) }) } ) render function creates renderImage images (saved as a link to a source file) renderPlot plots renderPrint any printed output renderTable data frame, matrix, other table like structures renderText character strings renderUI a Shiny tag object or HTML
  • 12. The Server The server is where all the code is located for execution of the app. How frequently code is run depends upon where it is placed within the server script. Code placed here will be run once when the app is launched. shinyServer will be executed and the unnamed function saved. Good place to source other scripts, read data sets and load libraries. Code placed here will run once each time a new user visits the app. The unnamed function will run once and save a distinct set of reactive objects for each user. Good place to put objects that record a user’s session. Code placed here will run every time the user changes the widget that this particular output depends upon. Important to not put unnecessary code here as it will slow down the entire app.
  • 13. Example of a shiny app with code
  • 14. More complex shiny functions Reactive Expressions Like render functions but they allow you to decide which parts of the app update when, for more streamlined computation. Absolute Positioning Allows personalisation of the user interface of the app using a grid based system. Interactive Visualisations Allows you to make interactive maps and charts using JavaScript libraries like Google Charts, Leaflet and d3. Progress Bars So users know that something is happening whilst waiting for a calculation to complete. Integration with R Markdown To make interactive documents. Shiny Server Pro (not free) Allows user authentication and personalisation of user interface.
  • 15. A slightly more complex shiny app
  • 16. Sharing apps Two main options: 1) Share the files with users that have R and know how to use it. (e.g. email zip file directly, use GitHub to share files, run from a web-link - runURl(“<the weblink>”)). 2) Share it as a web page. Host an app yourself e.g. For University of Sheffield apps, go through CICs - £100 per year for hosting on a virtual server. Shinyapps.io Rstudio’s cloud hosting service for shiny apps. Four different levels of service, including a free service (max 5 apps and 25 active hours per month). You retain complete control over your app. Shiny Server A free downloadable programme that can be run on Linux servers. Shiny Server Pro is a paid professional version that includes password authentification, administrator tools and email support (starts at >$10,000 per year.)
  • 17. General Comments Shiny takes a bit of getting used to, but the tutorials give an excellent introduction and there is lots of help online. Really quick way of visually presenting your data interactively – great for impact and engagement with the general public/customers/clients. Can be frustrating switching between server and ui scripts when writing reactive output. However, apparently now these can be combined into a single script. Can also be very frustrating when usual R commands don’t work the way you might expect them to in the server. Problems arise when trying to do more complicated things. A particular issue is needing to create input that is itself reactive to other input – this is possible but not straightforward. Might not be the best solution if you want a professional looking app, with complex functionality. Shiny is still in development and if something doesn’t seem possible, it may be worth contacting the developers and seeing whether they can help you.