title: Interactive / Reactive change of min / max values of sliderInput
body: <p>I've found <a href="https://github.com/wch/testapp/tree/master/setinput" rel="nofollow noreferrer">some information</a> about how to change the <code>value</code> of a <code>sliderInput</code> with a reactive expression within the <code>siderbarPanel</code>. But instead of the <code>value</code>, I'd like to change <code>min</code> and <code>max</code> of the slider with a <code>numericInput</code>. In <a href="https://github.com/wch/testapp/blob/master/setinput/server.R" rel="nofollow noreferrer">this</a> script for <code>server.R</code> it says that only <code>label</code> and <code>value</code> can be changed for sliders. Is there any other possibility to change the min/max values of <code>sliderInput</code> with a reactive expression?</p>
  <p>Here's an exmple:</p>
  <p>ui.R:</p>
  <pre><code>shinyUI(pageWithSidebar(
    
    #Sidebar with controls to select the variable to plot
    sidebarPanel(
     
    #Numeric Inputs
      numericInput(&quot;min_val&quot;, &quot;Enter Minimum Value&quot;, 1993),
      
      numericInput(&quot;max_val&quot;, &quot;Enter Maximum Value&quot;, 2013),
  
    #Slider 
      sliderInput(&quot;inSlider&quot;, &quot;Slider&quot;, 
                  min=1993, max=2013, value=2000),
  
  # Now I would like to change min and max from sliderInput
  # by changing the numericInput.
  
    mainPanel()
  ))
  </code></pre>
  <p>server.R:</p>
  <pre><code>library(shiny)
  
  shinyServer(function(input, output, session) {
  
    reactive({
      x&lt;-input$min_val
      y&lt;-input$max_val
      updateSliderInput(session, &quot;inSlider&quot;, min=x, max=y, value=x)
    })
  }
  </code></pre>