The reactive tag refers to a variable type and environment used inside Shiny applications based in the R programming language. Reactive elements are dynamic and changing over time usually due to user input to the Shiny application. This tag should be used with questions and errors regarding how to refresh, update, assign, and access user inputs into Shiny. The reactive tag is to be used in conjunction with the r and shiny tag.
Questions tagged [reactive]
2049 questions
0
votes
1 answer
Async requests in webflux are not async
I want my request to trigger some long running action, that should be executed in the background.
I wrote the following implementation that should process my action in a background, but in fact my request executed synchronously:
@AsyncTimeout(10…

a3dsfcv
- 1,146
- 2
- 20
- 35
0
votes
1 answer
Enable/disable a button using a reactive expression
I'm developing a shiny app. I require the user to choose first how does he/she want to upload data, by file or choosing an environment variable, using a radio button.
Once this is selected, depending on this choice, user can upload a file or select…

Pabort
- 348
- 1
- 11
0
votes
1 answer
Shiny: Save value box outputs in vector
I have a valuebox in a Shiny dashboard, it is updating itself with ReactivePoll function. This value came from a SQL query.
I need to save every value when it is updated (that happens when there is a new record on the database), I will save these…
0
votes
1 answer
Average of 2 input selector values not updating for the second picker input, Shiny
I have two picker input selectors, each has 4 labels (low, medium, large, very large) attached to a value (1,2,3,4).
Once the user has made his/her selection I want to display the overall average.
For some reason, my code is calculating the average…

Lea7885
- 97
- 1
- 9
0
votes
1 answer
Reuse same form after button click
I have created a page with some form controls. In the same page I have to regenerate the same form on click of button.
How can I reuse the same form after the button has been clicked?

Suj
- 1
0
votes
1 answer
How can I use several data sets in Shiny App?
I have a question in regards to Shiny. I have four data sets and depending on the user's input, I want to use one of the four data sets for the computations.
I tried using an if-statement, but it doesn't work. I also tried using a reactive…

Tabea
- 47
- 5
0
votes
1 answer
R Shiny: how to keep the width of the bars the same in ggplot2 even when changing the number of bars?
I have a pyramid ggplot in shiny where I can change the number of bars with select input. However, when I choose a small number, the width of the bars massively increases to fit the height of the plot. I have tried a couple of methods but I have not…

newbie
- 21
- 5
0
votes
1 answer
update choices (values) of input and output in shiny during a session
I have a small shiny example with which I would like to illustrate my problem. I want to change my dataset during a session which will change my options in my app. So during my shiny app I source a second R Script (addrow) which change my existing…

jimbo
- 13
- 3
0
votes
1 answer
Shiny - Reactive filter function issue
Hope someone can help with this tricky one: The Shiny app runs perfectly with the template Excel but when the user loads a new file and refreshes the calculation, this error appears:
Warning: Unknown or uninitialised column: `Distribution`.
Warning:…

julianobats
- 29
- 6
0
votes
2 answers
Begginer in Shiny - Problems with ggplot geom_tile
I am triying to make a heatmap with ggplot and Shiny in R, but the plot is not shown as I expected. I'm using data which have a diffrent structure than Shiny-RStudio exemples and maybe that's why I didn't have a good result.
My data table contains…

Sora
- 13
- 4
0
votes
1 answer
How to access a variable from a reactive expression in Shiny in R
I'm relatively new to using reactive expressions with Shiny. My problem is: I find myself having to create lots of reactive expressions with almost the exact same code but with different additional lines just to output something different (i.e.,…

caproki
- 348
- 2
- 18
0
votes
1 answer
Can't Validate Angular Form
I am creating an Angular app that requires testing a connection. However the connection can be saved with the fields left blank. I have not been able to successfully integrate Angular validators with the reactive form.
What would be the best way to…

TiredFullStacker
- 35
- 4
0
votes
1 answer
Shiny - reactive not evaluating directly on textarea change?
I'm creating a Shiny app where user input is parsed and then used to create specific plots. These plots should only be created when the user pushes a corresponding button. The text however should be parsed immediatly when user input…
0
votes
0 answers
Perform multiple actions upon pressing an actionButton
I've been struggling to get my Shiny app to perform multiple operations upon pressing a single actionButton. I've looked around a lot and haven't been able to solve it. I've tried eventReactive, observeEvent, putting everything in one block,…

telomere
- 1
- 1
0
votes
0 answers
Reactive form array not adding object to form group with attribute
I am working on Angular project, in this form is generated using reactive form.
For now initially I am adding one field by default on the form. This is the code to add the data :
this.objectFields.push(this._formBuilder.group({
fieldLabel:…

Neelam Sharma
- 2,745
- 4
- 32
- 73