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
69
votes
3 answers

Create dynamic number of input elements with R/Shiny

I'm writing a Shiny app for visualizing insurance benefit plans at my company. Here is what I'd like to happen: I'll have a selectInput or sliderInput where the user will choose the number of individuals on their medical plan A matching number of…
Hendy
  • 10,182
  • 15
  • 65
  • 71
67
votes
8 answers

How to get Leaflet for R use 100% of Shiny dashboard height

I am in the process of creating a Shiny dashboard application, where the dashboard body is supposed to show some maps. So far no problem to get the map expand over the entire width of the body, but it's somehow not willing to adjust to the full…
TomGeo
  • 1,213
  • 2
  • 12
  • 24
67
votes
1 answer

Column alignment in DT datatable

In my shiny app I am using datatable function from DT library to construct a table and want to align columns on center. I can use formatStyle('column', textAlign = 'center') but it affects only column body and not the header.
danas.zuokas
  • 4,551
  • 4
  • 29
  • 39
67
votes
3 answers

tooltip on shiny R?

I want to have a tool-tip in my Shiny R application. Is there any easy way to achieve that? For now, I am creating a density map and I want a simple tool-tip showing "click here to slide through years" while hovering the mouse over slider YEAR.…
Sabin
  • 11,662
  • 3
  • 25
  • 39
65
votes
6 answers

R shiny: display "loading..." message while function is running

I use Shiny GUI R package. I'm looking for a way to display a message like "loading..." after the actionButton was pressed. The function takes several minutes to execute, so I need to inform the user somehow that the button actually triggered some…
user1603038
  • 2,103
  • 3
  • 19
  • 29
62
votes
5 answers

Deploying R shiny app as a standalone application

I have developed a RShiny application which I would like to share internally with my colleagues (Hosting the app on a server, is not an option at this stage). I was exploring various options, and I came across a technique for bundling your app as a…
Dataminer
  • 1,499
  • 3
  • 16
  • 21
62
votes
1 answer

How do I suppress row names when using DT::renderDataTable in R shiny?

As per the explanation in section 2.3 here, I can remove rownames for a datatable by setting rownames = FALSE How do I suppress row names when using DT::renderDataTable in R shiny? The following doesn't work because if you look at the dataTables…
Frikster
  • 2,755
  • 5
  • 37
  • 71
58
votes
1 answer

Use D3 and Shiny to implement `identify()` in R

I asked a question on how to plot dynamically according to user interactions, whose solution works quite well on my machine. Now I want to make an on-line version and host it with Shiny. I have tried to put the code into server.R and invoke the…
Ziyuan
  • 4,215
  • 6
  • 48
  • 77
55
votes
2 answers

R Shiny set DataTable column width

I am trying to set the width of columns in a DataTable rendered in Shiny and am not able to implement it using the aoColumnDefs options. Has anyone tried this before ? My table has 1 text followed by 3 numeric columns. The numeric columns need to be…
xbsd
  • 2,438
  • 4
  • 25
  • 35
55
votes
4 answers

Change the color and font of text in Shiny App

I am using below code in server.R to display the text in the main panel. This is working exactly the way it should work. output$text1 <- renderText({ if(input$ag == 0) return(NULL) return('First 20 rows for requested AG') }) Is there any way to…
Piyush
  • 1,571
  • 4
  • 14
  • 21
52
votes
5 answers

Remove 'search' option but leave 'search columns' option

I would like to remove 'global search' option from my application, but leave 'column search' option. Any ideas? I've tried different paramethers like searching=FALSE, filtering='none'... None of this works properly. My…
Marta
  • 3,032
  • 3
  • 17
  • 34
52
votes
2 answers

R Shiny: Download existing file

Let's say I have an existing zip file (out.zip) in my shiny app (i.e. located on a server). I would like to have the user be able to download this file. This question is very similar to this one. However, that question zips files within the…
cdeterman
  • 19,630
  • 7
  • 76
  • 100
51
votes
3 answers

Change the color of action button in shiny

I am trying to change the color of the action button from gray to orange. actionButton("run","Run Analysis") (This is in server.R.) Is it possible to change its color?
Sam Kingston
  • 817
  • 1
  • 10
  • 19
50
votes
2 answers

Adding a company Logo to ShinyDashboard header

So just curious, is there any way to add a company logo to the header of a ShinyDashboard? As I am looking at the documentation, it describes changing the "logo" in the CSS, this is just configuring what goes in the upper left hand corner though as…
decal
  • 987
  • 2
  • 14
  • 39
50
votes
3 answers

R Shiny - disable / able shinyUI elements

I am looking for a way to implement disabling/abling functionality over my shinyUI elements. Here xiaodaigh gives a hint how to disable/able an actionButton (see an image below) and this is my desired result, but the code does not do the trick with…
Marta Karas
  • 4,967
  • 10
  • 47
  • 77