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 use {gtsummary} package in r shiny app

Is it possible to render a table with {gtsummary} in a shiny app? library(gtsummary) # make dataset with a few variables to summarize iris2 <- iris %>% select(Sepal.Length, Sepal.Width, Species) # summarize the data with our package table1 <-…
TarJae
  • 72,363
  • 6
  • 19
  • 66
5
votes
1 answer

write logs in shiny

I want to save a traceback from my shiny app (runs on a server). I tried extractStackTrace() with shiny.error(), but the most valuable part of a traceback is truncated, probably, due to a second call of…
olya
  • 53
  • 3
5
votes
1 answer

How to change sidebarPanel for every tabPanel in the Main Panel

I want to develop an app with a layout similar to Radiant in the Shiny gallery (https://shiny.rstudio.com/gallery/radiant.html). In that app, the sidebarPanel changes for each tabPanel that exists in the mainPanel. How is that accomplished? This…
user8229029
  • 883
  • 9
  • 21
5
votes
1 answer

Remove redundant space that appears when the width of the rightsidebar in shinydashboardPlus is changed

I am using shinydashboardPlus and wish to change the width of the right sidebar which I know can be done specifying the width argument in the call to the rightSidebar function, however when I do this (as per the below example taken from here)…
lmsimp
  • 882
  • 7
  • 22
5
votes
1 answer

How can I set decimal width for a column in R Shiny?

I want to set a decimal width for a column() element in my R Shiny dashboard. For example, I need 5 columns, hence I require a width of 2.4 each. Is there a way to do it?
Dmitry Ishutin
  • 396
  • 2
  • 13
5
votes
1 answer

Custom Shiny Input Update Reactives

I have a custom shiny input which is a balanced set of sliders. I am trying to use the updateBalancedSliderInput so I can reset the values to their defaults. However, in my app, this updateBalancedSlider function does not kick off any reactives in…
SharpSharpLes
  • 302
  • 4
  • 20
5
votes
1 answer

Authorizing non-interactive use of googlesheets through Shiny app using googlesheets4

I know there are a few other similar questions floating around SO (e.g., here and here), but I thought I'd try again, as the others have not gotten many answers. I have a Shiny app that allows its users to provide input through the app, but these…
phalteman
  • 3,442
  • 1
  • 29
  • 46
5
votes
1 answer

download button in flexdashboard navbar

I have created a download button in the .navbar-right . I would like to link that button to the downloadHandler() function that will generate a .pdf report based on the "report.Rmd" which contains Chart 1 of the dashboard. Does anyone know how to…
laBouz
  • 205
  • 1
  • 6
5
votes
2 answers

Change colour of pickerInput items in Shiny

Following on from this example can someone please tell me if it's possible and how to change the colour of the font of the items in the drop down menu of the pickerInput UI from the shinyWidgets package? Here is a short example of the…
lmsimp
  • 882
  • 7
  • 22
5
votes
1 answer

R shiny standalone application using Photon

I am looking for an easy way to create a standalone application from a Shiny App. I first saw 'Shiny meets electron' talk by Katie (see Google). After going through their website, I think Photon is their latest method! I tried to test Photon in it's…
Luc
  • 899
  • 11
  • 26
5
votes
1 answer

Animation/transition for Shiny conditionalPanel

Shiny conditionalPanels just abruptly appear then disappear. Is there any way to make them slide or fade or otherwise gently transition?
Steve Powell
  • 1,646
  • 16
  • 26
5
votes
1 answer

Overlaying scatter area in plot_ly

I'd like to do plotly chart and plot filled area shape and bars on one plot. However area shape overlaying bars. I couldn't change order of elements. Is it possible to bring bars in fron? data <- data.frame(years = c(2005,2006,2007), values1 =…
5
votes
1 answer

How to make a Shiny App beep / play a sound after a reactive event?

I would like a Shiny app to play a sound after a reactive event. I already know a solution to this at the end of an R script. On Shiny I tried: library(shiny) library(beepr) ui <- fluidPage( tags$head(tags$script(src = "message-handler.js")), …
Waldi
  • 39,242
  • 6
  • 30
  • 78
5
votes
0 answers

Inconsistent error handling of function and S4 generics on R 4.0.1

Prior to R 4.0.1, functions and S4 generics handle errors identically: > nrow(stop()) Error in nrow(stop()) : > setGeneric("nrow") [1] "nrow" > nrow(stop()) Error in nrow(stop()) : In R 4.0.1 I now get: # base::nrow > nrow(stop()) Error in…
5
votes
1 answer

Shiny downloadHandler wait for data to be ready

The data in my shiny application takes a few seconds to be processed. I have a download button and I would like it to be either unclickable until the data are prepared or have the download handler wait until prepared. At the moment clicking the…
Simon
  • 675
  • 1
  • 6
  • 15
1 2 3
99
100