title: Having Problems with sliderInput in R Shiny - Getting NaNs
body: <p>I'm trying to make a slider input that has years between 2005 and 2040. It seems pretty simple, right? Normally it works fine, but every once in a while I will pull the slider too far to the left and it gives me NaN, which tends to crash things. I've tried to set up the rest of my code so that it doesn't have a problem, but it's still bugging me. I've scoured the Internet for explanations, but so far nothing. Here's my ui.R:</p>
  
  <pre><code>library(shiny)
  
  shinyUI(fluidPage(
    titlePanel("Test"),
  
    sidebarLayout(
    sidebarPanel(
  
      selectInput("over", "Indicator", c("Indicator 1", "Indicator 2"), selected="Trade"),
  
      selectInput("type", "Type", c("Discrete", "Continuous")),
  
  
      # Nothing particularly unusual here...   
      sliderInput("year", "Year", min=2005, max=2040, value=2005, animate=animationOptions(interval=1500), sep=""),
  
      checkboxInput("table", "Show Table")
  
      , width=3),
  
    mainPanel(    
      uiOutput("plot"),
  
      uiOutput("showtable")
  
      , width=9)
    )
  ))
  </code></pre>