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
5
votes
1 answer

How to Download excel File after successful Paypal transaction R Shiny

I am attempting to integrate Paypal into an R Shiny app. I've been successful at setting up the sandbox and confirming payment. However, I can't quite figure out how to get the app to either download a csv file immediately or show a new button…
bdavis562002
  • 101
  • 3
5
votes
1 answer

rhandsontable, wrap text in cells of column (and auto row height)

Data... DF <- data.frame(a = c("hi", rep(NA, 4)), b = letters[1:5], c = LETTERS[1:5], stringsAsFactors = FALSE) When I fix the column widths and the row heights, how can i force the text to wrap…
bikeactuary
  • 447
  • 4
  • 18
5
votes
0 answers

How to not waiting on promise evaluation in R

I would like to execute a very expensive function (called 'never_ending_calc' in the below example) in a separate R session in a shiny app. I already prepared the below code, it works fine, but my parent R session waits on the result of the promise…
BBO
  • 51
  • 2
5
votes
1 answer

R shiny tables changing headings and light dark mode switch

I am doing a basic visualisation for Covid-19 and in one of the tabs I have a table. I can't seem to get the writing above and below the table in another colour. I've included an image that highlights the writing that I need changed. I would also…
L10Yn
  • 211
  • 2
  • 10
5
votes
3 answers

How to Retain the values in the Check Box in R Shiny App?

I am trying to create a Shiny App. In this particular app i have a set of Radio buttons where choosing one will display a set of options below as Check Boxes and Choosing another radio button will choose other set of options. Kindly find the UI and…
David Chris
  • 255
  • 4
  • 16
5
votes
1 answer

Flexdashboard Wide Table Scrolls Into Side Bar

I have a wide table in a flexdashboard that displays via renderTable. There is a scroll bar in the browser but if you scroll the table to the right it goes into the sidebar. How can I make it go behind the sidebar invisibly or keep it contained in…
Tyler Rinker
  • 108,132
  • 65
  • 322
  • 519
5
votes
1 answer

How to change the height of a plot in the shiny context

As shown in the image below, the height of my plot remains constant when multiple counties are selected in the sidebar. This makes the plot too crowded so that the labels become unreadable. I would like to alter the height of my plot as a function…
Nader Mehri
  • 514
  • 1
  • 5
  • 21
5
votes
1 answer

How to create a simple drop down menu in shiny?

So I have three download buttons in three tab panels inside a tabsetpanel in my shiny app. Is there any way I cant create a drop down menu instead of these tab panels? I don't want to mess with the outputs, just organize the code below in the form…
tadeufontes
  • 443
  • 1
  • 3
  • 12
5
votes
1 answer

ggiraph plot not appearing in shiny app, but works in RStudio

I really want to use ggiraph to add tooltips in my shiny app. However, when I try to do so the plot does not appear. In the example below I used a plotOutput and ggiraphOutput but only my.plot appears. I can produce the interactive plots in RStudio,…
Sarah W
  • 53
  • 4
5
votes
0 answers

including namespace in call to Javascript in Shiny module

I use in my shiny apps custom shinyInput functions that facilitate building dynamic tables such that users can provide input from checkboxes, drop downs, text boxes, etc. to each row of a table. This functionality relies on calling Javascript in the…
srearl
  • 51
  • 2
5
votes
2 answers

filter data in shiny app but keeping values in selectInput when updating table

I have an shiny app that ask the user to upload a file (a tabulated file with data), then it renders this file into a table and the user can filter some values based on numericInput, selectInput, and textAreaInput. The user has to select the filters…
user2380782
  • 1,542
  • 4
  • 22
  • 60
5
votes
1 answer

Link to a local html file on RMarkdown with Shiny

I have an interactive RMarkdown document with shiny (i.e. with the line runtime: shiny in the YAML header) and inside it I would like to create a link to a local html file. But nothing I have tried so far works. For the sake of the example let's say…
5
votes
0 answers

Zoom shiny leaflet world map to full width

Does anyone know how to set default render zoom of a Shiny Leaflet map so a full world map zooms to fit the window width (i.e. -180° to 180° properly fits the window)? I can only set zoom to integers, with 2 being too small and 3 too big. …
geotheory
  • 22,624
  • 29
  • 119
  • 196
5
votes
1 answer

Browser-friendly way of drawing rectangles on top of image R Shiny

I have written a shiny app that allows the user to draw rectangles on top of an image (minimal reproducible example below). The problem with my current approach is that every time a rectangle is added, a new image is created, written to disk, and…
Antoine
  • 1,649
  • 4
  • 23
  • 50
5
votes
0 answers

Using SelectAreaFeature plugin with Leaflet for R

I am trying to use the SelectAreaFeature Leaflet JS plugin with Leaflet for R. I have had success using other Leaflet JS plugins, but not the SelectAreaFeature plugin. Here is an MRE (requires the SelectAreaFeature js…
fifthace
  • 506
  • 1
  • 10
  • 33
1 2 3
99
100