Questions tagged [shiny]

Shiny is an R package that makes it easy to build interactive web applications using only R. For the Python Shiny package, use the tag [py-shiny] instead.

Shiny makes it easy for R developers to turn their analyses into interactive web applications that anyone can use, without requiring any prior HTML, CSS or JavaScript knowledge. It enables the developer to let users choose input parameters using user friendly controls like sliders, drop-down menus, and text fields, which will then influence any number of outputs like plots, tables, and summaries.

Repositories

Other resources

Free books on Shiny:

Related tags

28422 questions
123
votes
1 answer

How to change 'Maximum upload size exceeded' restriction in Shiny and save user file inputs?

I've recently learned that R Shiny programs impose a maximum size restriction for file uploads by default (I don't know what the size is exactly, but I'm guessing it's 5,000 KB). I'd like to remove this restriction. How can I do so, and what is…
jeffrey
  • 3,196
  • 7
  • 26
  • 44
115
votes
6 answers

Hosting and setting up own shiny apps without shiny server

I'm trying to make shiny apps available to my coworkers without them having to run or even have R installed. So I read this webpage and found this sentence: If you are familiar with web hosting or have access to an IT department, you can host…
schlusie
  • 1,907
  • 2
  • 20
  • 26
99
votes
4 answers

How to save plots that are made in a shiny app

I'm trying to figure out how to use downloadButton to save a plot with shiny. The example in the package demonstrates downloadButton/downloadHandler to save a .csv. I'm going to make a reproducible example based on that. For…
alexwhan
  • 15,636
  • 5
  • 52
  • 66
98
votes
5 answers

Shiny: what is the difference between observeEvent and eventReactive?

I read the Shiny documentation about reactive programming a few times now, but I can't properly understand the difference between observeEvent and eventReactive. The documentation says: Use observeEvent whenever you want to perform an action in…
lucacerone
  • 9,859
  • 13
  • 52
  • 80
96
votes
2 answers

Advantages of reactive vs. observe vs. observeEvent

I've reading everything I can about shiny reactive programming. I'm a bit confused. The following all work but what is the preferred method and why? Obviously the example below is simple but will I run into trouble when creating a larger…
agf1997
  • 2,668
  • 4
  • 21
  • 36
96
votes
6 answers

How to listen for more than one event expression within a Shiny eventReactive handler

I want two different events to trigger an update of the data being used by various plots / outputs in my app. One is a button being clicked (input$spec_button) and the other is a point on a dot being clicked (mainplot.click$click). Basically, I…
Hillary Sanders
  • 5,778
  • 10
  • 33
  • 50
95
votes
2 answers

R Shiny: reactiveValues vs reactive

This question is related to this one. The two can generate the same functionality, but implementation is slightly different. One significant difference is that a reactiveValue is a container that can have several values, like input$. In shiny…
Eduardo Bergel
  • 2,685
  • 1
  • 16
  • 21
95
votes
2 answers

R shiny passing reactive to selectInput choices

In a shiny app (by RStudio), on the server side, I have a reactive that returns a list of variables by parsing the content of a textInput. The list of variables is then used in selectInput and/or updateSelectInput. I can't make it work. Any…
PatrickT
  • 10,037
  • 9
  • 76
  • 111
85
votes
3 answers

Outputting multiple lines of text with renderText() in R shiny

I want to output multiple lines of text using one renderText() command. However, this does not seem possible. For example, from the shiny tutorial we have truncated code in server.R: shinyServer( function(input, output) { output$text1 <-…
Alex
  • 15,186
  • 15
  • 73
  • 127
84
votes
8 answers

shiny 4 small textInput boxes side-by-side

I've got a shiny server version 0.4.0 and I want to have 4 small textInput boxes to look like this: x-min x-max y-min y-max [...] [...] [...] [...] They now look like this: x-min [...................] x-max [...................] y-min…
719016
  • 9,922
  • 20
  • 85
  • 158
80
votes
2 answers

Embedding Image in Shiny App

I've been working on a shiny app and would like to include a logo in the upper right corner of the app. How can I easily embed an image using shiny and r? Thanks! K
kay
  • 2,110
  • 3
  • 14
  • 14
76
votes
4 answers

R + Shiny which hammer? straight Shiny, flexdashboard or shinydashboard?

At the risk of getting hit with a mods "too broad a question" hammer, I want to ask given the plethora of interactive R Shiny tools and packages emerging, when do you use which one? Shiny - to me only downside your project needs to run from shiny…
micstr
  • 5,080
  • 8
  • 48
  • 76
73
votes
3 answers

Scale and size of plot in RStudio shiny

Related, but only talks about the allocated plot space in general, not how to directly set the plot image size and then scale it to fill the desired space Shiny Chart Space Allocation I'm creating a shiny web app and would like to set the size of…
Hendy
  • 10,182
  • 15
  • 65
  • 71
72
votes
5 answers

How to organize large Shiny apps?

What are the best practices to organize larger Shiny applications? I think best R practices are also applicable to Shiny. Best R practices are discussed here: How to organize large R programs Link to Google's R Style Guide: Style Guide But what are…
Mikael Jumppanen
  • 2,436
  • 1
  • 17
  • 29
69
votes
6 answers

Starting Shiny app after password input

I know that in Shiny Server Pro there is a function of password control. The question is that Shiny has function passwordInput(), which is like textInput() Has anybody thought about how to do the following: 1) Launching the application only after…
1
2 3
99 100