Re: [R] How to avoid endless loop in shiny

2016-03-10 Thread Michael Peng
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(

Re: [R] How to avoid endless loop in shiny

2016-03-08 Thread Greg Snow
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:

Re: [R] How to avoid endless loop in shiny

2016-03-08 Thread Doran, Harold
] 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

[R] How to avoid endless loop in shiny

2016-03-08 Thread Michael Peng
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