Questions tagged [shiny-reactivity]

A key aspect of Shiny apps is reactivity - the illusion that the application is interactive.

A key aspect of Shiny apps is reactivity - the illusion that the application is interactive. See http://shiny.rstudio.com/articles/reactivity-overview.html

972 questions
5
votes
1 answer

how to use shinyFileChoose to create an reactive object to load a data.frame

I've been using fileInput in my shiny app to upload a file and then create a reactive object that allow me to read the data.frame and do another stuff like subsetting or filtering. However, I need to get the absolute path of the file for another…
user2380782
  • 1,542
  • 4
  • 22
  • 60
5
votes
1 answer

How do i avoid flashing errors in Shiny R plot?

I found this code from J. Cheng as an example of freezeReactiveValue. However, before the plot is displayed, occasionally the error is momentarily displayed in place of the plot. (it takes a few changes of the inputs to get this.) As i understand,…
JustLearning
  • 180
  • 2
  • 12
4
votes
0 answers

R Shiny - cannot reopen application via URL correctly due to reactivity problems

This is my first time posting on stackoverflow, despite being a user for some time, so I will do my best to be clear. I have an application that has four select inputs that each inter-relate with each other (dependent on the selection made in the…
mjacobs
  • 41
  • 3
4
votes
0 answers

Can shiny display the finished output on webpage immediately, and do not wait for other unfinished outputs?

In a shiny app, all of the outputs will never appear until the last render output is finished, but what I want is to show the finished output immediately. For example, in this app the text output, table DT1, and table DT2 will show simultaneously 10…
4
votes
3 answers

How to add rows to R Shiny table

I am trying to build a form with R Shiny which will be used to populate a table once the action button at the end of the form is clicked. What I have not been able to figure out is how to pick up the data in the form and add it to a new row in the…
Arun K
  • 43
  • 4
4
votes
1 answer

use purrr::pwalk to create multiple shiny observeEvents from tibble

what I am trying to do I would like to iterate through a tibble and create multiple observeEvents. I have a reproducible example below. The commented out code works, but I would like to create the observeEvents programmatically with pwalk. Basically…
4
votes
1 answer

Shiny: App looks different when published

I have written the code for an app that looks perfect when I run the app in R. See how clear the input choices and spacing is: However, when I publish the app on the "Shiny Cloud", it looks like this: Notice how everything is bunched up, and the…
NewBee
  • 990
  • 1
  • 7
  • 26
4
votes
1 answer

Set one plotly zoom to match that of another plotly zoom in Shiny

I am trying to use plotly_relayout to get the x-axis zoom limits of one plot, and apply them to another plot in Shiny. So far I can get the relevant plotly_relayout data from "plot1" (x-axis limits), transform it (from a numeric to a Date), and have…
4
votes
2 answers

Prevent double loading of output when using updateSelectInput

In Shiny, using updateSelectInput() to achieve conditional filters (where the selectable choices of filter B depend on filter A) is the accepted solution to many questions (like here). However, when implementing it I often run into output objects…
TimovD
  • 43
  • 5
4
votes
1 answer

Login Screen For My Shiny App Does Not Time Out

I have a shiny app where I have added authentication. The app is hosted on shinyapps.io and I have a few clients using the app. However, one client does not close his browser tabs, leaving the login page idle. I have found out that the login page…
Jordan Wrong
  • 1,205
  • 1
  • 12
  • 32
4
votes
1 answer

ignoreInit not working with dynamic content

This is a cross post from github to get more traction. I recognized that observeEvent is triggered upon start when the UI is created dynamically, even with ignoreInit=TRUE. I found this thread on stackoverflow, but the presented solution does not…
Qrt
  • 389
  • 3
  • 16
4
votes
1 answer

Interactivity between multiple sessions of a single running R Shiny app

I would like to build an R Shiny app that is able to pass information from one running instance to other possible running instances. I have so far found nothing that could help me with this, and I'm hoping to do it right instead of resorting to…
Teemu Daniel Laajala
  • 2,316
  • 1
  • 26
  • 37
3
votes
1 answer

How to pass a reactive plot generated in Shiny to Rmarkdown to generate dynamic reports

In short I would like to be able to generate a dynamic Rmarkdown report file (pdf or html) from my shiny app with a button click. For this I thought I will use parameterized Report for Shiny. But somehow I can not transfer the single puzzles to the…
TarJae
  • 72,363
  • 6
  • 19
  • 66
3
votes
1 answer

Warning: Error in <=: comparison (4) is possible only for atomic and list types

I have this sample app: User should pick a numer of row from which a random value will be generated and output is a plot of values. I would like to compare input with the row number but I get this error: Warning: Error in <=: comparison (4) is…
onhalu
  • 735
  • 1
  • 5
  • 17
3
votes
2 answers

Backend of the app authentication with shinyMobile

I am trying to use the shinyMobile package to implement a login page before the actual app. However, I am not sure how to use updateF7Login, f7Login and f7LoginServer to check if the user gave the right user name and password. In my example I am…
user2120870
  • 869
  • 4
  • 16
1
2
3
64 65