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
5
votes
2 answers
How to pass table and plot in Shiny app as parameters to R Markdown?
In this Shiny app, the user can upload a .csv file, get the results as a table and plot. I want to be able to download the results as PDF document.
Input file
#I created the input .csv file to be used in the app from diamonds…

shiny
- 3,380
- 9
- 42
- 79
5
votes
0 answers
Java 9 reactive streams. Why the need of Processor?
I've been seeing in Java the reactive streams concept which tends to standardize javaRX and Spring reactive concepts. Everything good except the fact that in order to do some transformation of the streams you need to implement one ore more…

Eddie
- 288
- 2
- 7
5
votes
1 answer
RxJava: Blocking single vs Blocking first
I could never understand the difference between blockingSingle and blockingFirst on Observables in RxJava. Any help would be greatly appreciated.

Virendra
- 115
- 2
- 10
5
votes
0 answers
OpenAPI CodeGen for Spring-Webflux / Mono or Flux Objects as return
The newest Version of OpenApi Codegen (and it's Maven plugin) are/should be able to auto-generate interfaces for spring maven with Webflux/Reative return objects (e.g. Mono or Flux objects). Yet, I don't see to be able to get it working.
These are…

J. Schaefer
- 81
- 1
- 1
- 2
5
votes
2 answers
Elm - input type checkbox
I'm trying to set a type attribute for input:
input [ type "checkbox" ] []
But I get an error:
It looks like the keyword `type` is being used as a variable.
input [ type "checkbox" ] []
^
Rename it to something else.
When I try to…

Akhmedzianov Danilian
- 917
- 1
- 8
- 10
5
votes
2 answers
RxJava: combine two optional observables
I have two Observables, let's call them PeanutButter and Jelly. I'd like to combine them to a Sandwich Observable. I can do that using:
Observable peanutButterObservable = ...;
Observable jellyObservable =…

Warlax
- 2,459
- 5
- 30
- 41
5
votes
1 answer
Spring Reactive WebClient
I have a reactive rest api (webflux), also using the spring WebClient class, to request data from other rest services.
Simplified design:
@PostMapping(value = "/document")
public Mono save(@RequestBody Mono document){
//1st…

Igor Veloso
- 487
- 2
- 8
- 20
5
votes
2 answers
RxSwift Shared Subscription Execution Order
How can I ensure that a subscriber to an Observable will receive the onNext event after another subscriber?
My example is the following:
let firstNameObservable = firstName.asObservable().shareReplay(1)
let lastNameObservable =…

Infinity James
- 4,667
- 5
- 23
- 36
5
votes
2 answers
Convert an Observable to an async generator
I'm trying to use rxjs in conjunction with babeljs to create an async generator function that yields when next is called, throws when error is called, and finishes when complete is called. The problem I have with this is that I can't yield from a…

error
- 694
- 4
- 14
5
votes
3 answers
Combination of Observable.FromAsync+Repeat+TakeWhile creates infinite loop
Can someone explain why the following AsObservable method creates an infinite loop even though the end of stream is reached?
public static class StreamExt {
public static IObservable AsObservable(this Stream stream, int bufferSize) {
…

Daniel Müller
- 434
- 4
- 12
5
votes
2 answers
Buffer group by groups with Reactive Extensions, nested subscribe
I have an event source that generates events that belong to certain groups. I would like to buffer these groups and send the groups (in batches) to storage. So far I have this:
eventSource
.GroupBy(event => event.GroupingKey)
.Select(group…

Ronald Wildenberg
- 31,634
- 14
- 90
- 133
5
votes
1 answer
Create ControlProperty for custom UIControl
Is it possible to make extension of structure Reactive, where base class is my custom control inherited from UIControl?
When I'm trying following code:
extension Reactive where Base: CustomControl {
public var value: ControlProperty…

Dmitriy Stupivtsev
- 832
- 1
- 8
- 17
4
votes
2 answers
mongodb reactive spring boot DBRef resolution is not supported
I wrote this programe spring boot mongodb reactive
@SpringBootApplication
public class ReactitveMongoDbApplication {
public static void main(String[] args) {
SpringApplication.run(ReactitveMongoDbApplication.class, args);
}
…

abdennour
- 51
- 4
4
votes
1 answer
Emit value in random intervals if condition applies
Here are the three points I want to achieve:
I want to emit a specific value in a random interval
I want to emit only if upstream has a specific value
I want to cancel the random time interval and re-start it if there is a new value upstream
To…

smnk
- 471
- 1
- 6
- 25
4
votes
0 answers
Spring reactive WebClient retry tests with StepVerifier
I have a simple implementation of WebClient request:
public Mono getTodoWithSimpleRetry(String id) {
RetryBackoffSpec retrySpec = Retry.fixedDelay(3, Duration.ofSeconds(2))
.doBeforeRetry(beforeRetry -> {
…

ExcepOra
- 117
- 9