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
Use reactive input into R code calculations for Shiny
I have a shiny application reading an input from ui and I am unable to follow up with the data from the input in my code. As below:
ui <- fluidPage(
...
selectInput("ISvModels", "Choose:",
choices = c(1000,5000)),
)
server…

julianobats
- 29
- 6
0
votes
1 answer
How R2DBC Statement.fetchsize exaclty works
I am using the r2dbc-postgresql driver. Let's say we have a table with 1000 records and the fetchSize is 100:
connectionMono.flatMapMany(
connection -> connection
.createStatement("select age from users")
…

lkatiforis
- 5,703
- 2
- 16
- 35
0
votes
0 answers
How to achieve parallelism and waiting for response that is used in subsequent steps in reactive programing
I am trying to replicate a scenario that we face in the production, which contains a mix of parallelism and waiting until some part is completed, dependent on the response.
Below is a replica of the code.
import java.time.Duration;
import…

rajadilipkolli
- 3,475
- 2
- 26
- 49
0
votes
0 answers
dynamic reactive buttons, update variables
I am using the answer of the following code to create an arbitrary number of action events ushing this code:
Dynamic number of actionButtons tied to unique observeEvent
What I would like to do is now used the observe event to change a reactive…

Jorge Kageyama
- 393
- 4
- 17
0
votes
2 answers
R Shiny multiple event reactive to build a ggplot
As an exercice to learn how to use R Shiny, I want to build a ggplot histogram with the values to be represented, fill, color and binwidth (choosable thanks to radioButton, selectInput and numericInput) working as reactive events : I want the plot…

Dark Veaudor
- 23
- 2
0
votes
3 answers
How can I properly unit test a reactive response for a simple string value?
I am very new to Webflux and the whole reactive context. I just can't get my head around. However I started with a - in my theory - simple example to try things out.
The following code should be used for some data exporting web endpoints. Therefore…

xetra11
- 7,671
- 14
- 84
- 159
0
votes
1 answer
MultiThreaded delaying class deallocation
below i am defining a solution and using interval as a timer in background thread as follow :
@weakify(self)
//IMPORTANT:- Throttle is working exactly the same way debounce works in RX SO DO NOT USE IT.
RACScheduler *bacgroundScheduler =…

Osama Fawzi
- 47
- 1
- 8
0
votes
1 answer
How can I access each element of a list of input matrices on a shiny server?
I am trying to access output values inside the server on my shiny app.
The values are inputed by the user in a loop: depending on the number 'n_matrizes', the user inputs 'n_matrizes' number of matrices. The server then collects all these matrices…
0
votes
1 answer
Shiny R: Excel file input to datatable output (with inputs in the datatable)
I am rather new to Shiny and I want to have a table with the data from a file input in which in the first column the values can be selected from certain options. This works for data which doesn't come from the file input.
In the UI part I take a…

MatheMarco
- 13
- 2
0
votes
0 answers
Angular checkbox list with mat-checkbox
I have a form with checkboxes in the form of a list. When I check a checkbox, the value updates in my formgroup but at the HMI level, the checkbox does not remain checked
ngOnInit(){
const validators = [];
if(this._isRequired){
…

dna
- 486
- 1
- 9
- 18
0
votes
1 answer
shinyTree Checkboxes using Dates
I'm trying to create a branching checkbox input using dates similar to the picture below.
The final selections will be unique observations from the prior selected Name. Each Name could have many observations so I'd like to be able to use dates to…

vb66
- 353
- 3
- 14
0
votes
2 answers
Using reactive java, insert element only if flux is empty
I have a db, where I want to see my entry with the unique key. But sometimes I need to allow duplicates for that key, so I can not use indexes.
I have something like this
Flux getStudentsBySomething(String something) {..}
Mono…

a3dsfcv
- 1,146
- 2
- 20
- 35
0
votes
1 answer
Notify an observable to complete when request has finished
I'm relatively new to reactive programming and really trying to get my head around it still even after reading Rx.Net in Action.
I have a service class which have two public methods Get and GetStream.
GetStream will create an observable which will…

Adam H
- 561
- 1
- 9
- 20
0
votes
1 answer
R Shiny Reactive Radio Buttons
In the following example I have two static radio buttons representing the mtcars and iris datasets. Upon making a selection, the user is presented with a second set of buttons based on data in each dataset. For the mtcars dataset, the user can…

Scott Parrish
- 81
- 7
0
votes
1 answer
how to refresh or override plots using actionButton in shiny
I have deal with the plot show problem about one,two or all of them togather.
But now I just wanna have a modification on my code.
I mean I want to show one plot each time when I click the first button. And then I click the second button, the new…

花落思量错
- 352
- 1
- 11