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 change background and text color of DT Datable header in R Shiny

I have a datatable that I want to show in R Shiny, but I want the header column that has the column names to be red and the text to be in white. With formatStyles(), I can only specify entire columns instead of just the row of header names. How…
J.Sabree
  • 2,280
  • 19
  • 48
5
votes
1 answer

How to sort multiple tables in Shiny

Is there any way to sort a column in a table and the same column in another table? For example, in the code below I draw two datatables with mtcars data and I would like to sort the column mpg of the first table by clicking, showing the same sorting…
5
votes
0 answers

Is it possible to update and output a shiny table as it's being generated?

I am currently working on a shiny app that runs a series of calculations on a dataset on the fly when someone presses "Calculate". The dataset is very large and a lot of calculations are made via a lapply, which allows the user to track the progress…
JohnnyB
  • 61
  • 4
5
votes
1 answer

Shiny: Add a hover button on select input choice

The problem: I am trying to add 'hover text' to the choices available in the select input/multi input function in shiny. According to a different user, ShinyBS's tooltip function is only designed for selection by id. Thus, I am trying to use…
NewBee
  • 990
  • 1
  • 7
  • 26
5
votes
1 answer

How to change breakpoint of navbarPage collapse in Shiny

I'd like to use shiny::navbarPage(collapsible = TRUE) to collapse navigation elements into a menu when my Shiny app is viewed on small screens. By default, the collapse is triggered when the width of the browser is less than 940 pixels. Is there any…
Mark_1
  • 331
  • 1
  • 3
  • 16
5
votes
0 answers

Looking for help launching a dockerized shiny app built with the golem framework on an AWS EC2 instance

Does anyone have resources or prior examples for launching a shiny dockerized app built with the golem framework on an AWS EC2 instance? Mainly, I could use some assistance configuring the Dockerfile, shiny-server.conf, and shiny-server.sh…
bikingman
  • 161
  • 1
  • 5
5
votes
2 answers

How to make textOutput faster?

I'm trying to create an app that just adds text to the mainPanel. However, the text output is very slow when adding text. I'd like to make this instant and fast instead of it taking so much time. Is there a way to make it be processed in the browser…
writer_typer
  • 708
  • 7
  • 25
5
votes
1 answer

R Shiny / shinyapps.io - Worker and Instance settings to maximize performance

Extra information relevant to this: https://shiny.rstudio.com/articles/scaling-and-tuning.html I am trying to determine the best Worker and Instance settings for my Shiny App to make the user experience as smooth as possible. For the most part,…
TTS
  • 1,818
  • 7
  • 16
5
votes
1 answer

How do I save addDrawToolbar shapes drawn in an R Leaflet Shiny map so I can re-import them?

I need to take the shapes drawn in an R Leaflet Shiny app using addDrawToolbar in leaflet.extras and save them to a file that can be re-imported by an R Leaflet Shiny app at a later time. I am focusing on the leaflet.extras information in GitHub by…
5
votes
0 answers

Is there a way to show download complete message after downloadhandler saves files in R shiny?

I am building an app, from which user can csv download files, i am using download handler for downloading the csv files. Each time user downloads a file , a modal message will appear to let the user know if download is completed. The problem is even…
5
votes
1 answer

R shiny datatable extension "Buttons" - how to export the whole table to excel?

I have an R Shiny app and one of the output elements is a databale. I use the following code to display Buttons like Copy, Excel, Print: df <- datatable(df, rownames= FALSE, filter = 'top', …
Angelo
  • 1,594
  • 5
  • 17
  • 50
5
votes
1 answer

Data frame won't update using observeEvent in Shiny R

I am a novice programmer, please excuse if I am not clear or missing relevant information. I have a shiny app written that imports a dataframe from another set of code. I would like to update that dataframe with user input in the app. I have gotten…
reidj
  • 310
  • 1
  • 11
5
votes
1 answer

Using switch to transform a variable from within a ggplot2 function

I have an R Shiny app which plots horsepower from the mtcars data set against a user selected x variable. I would like the user to be able to select a transformation to perform on the x-variable ahead of plotting. In the simplified example below,…
DJC
  • 1,491
  • 6
  • 19
5
votes
1 answer

Including a HTML file rendered from RMarkdown in R Shiny apps using shinydashboard is causing tabItems to break

Problem When including a HTML document rendered from RMarkdown in a ShinyApp using shinydashboard, the HTML document is only rendered correctly when the setting "self_contained:" in the YAML chunk of the RMarkdown file is set to true. However, doing…
ZekeMarshall
  • 131
  • 5
5
votes
1 answer

Error: Problem with `filter()` input `..1`

Im writing a function to incorporate into shiny app that predicts the next word from a set of pre defined files. When I create the functions to predict the next word using ngrams, I'm running into this error x object of type 'closure' is not…
Jayashree K
  • 131
  • 2
  • 3
  • 16