Hi Greg,
Isolate may not solve the problem. For the following code. It runs only
1-2 times and stopped without isolate. If we update the slider with same
value, it will not send a new message.
library("shiny")
ui <- fluidPage(
titlePanel("Slider Test"),
sidebarLayout(
sidebarPanel(
You need to use `isolate` on one of the assignments so that it does
not register as an update. Here are a few lines of code from the
server.R file for an example that I use that has a slider for r
(correlation) and another slider for r^2 and whenever one is changed,
I want the other to update:
] On Behalf Of Michael Peng
Sent: Tuesday, March 08, 2016 2:36 PM
To: r-help@r-project.org
Subject: [R] How to avoid endless loop in shiny
Hi,
I added two sliderInput into the app with package "shiny": sliderA and sliderB.
The values in the two sliders are correlated. If I change slide
Hi,
I added two sliderInput into the app with package "shiny": sliderA and
sliderB. The values in the two sliders are correlated. If I change sliderA,
I used updateSliderInput to update the value in sliderB. And also If I
change sliderB, I used updateSliderInput to update the value in slideA.
Th
4 matches
Mail list logo