Problems with sliderInput in R Shiny - Getting NaNs

I am trying to make a slider tab that has years between 2005 and 2040. It seems pretty simple, right? It usually works fine, but from time to time I move the slider too far to the left, and that gives me NaN, which usually breaks things up. I tried to tweak the rest of my code so that it didn't have a problem, but it still eavesdropped on me. I have calculated the Internet for an explanation, but so far nothing. Here is my ui.R:

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)
  )
))
+4
source share
1 answer

, sep. step? , , NULL. :

sliderInput("year", "Year", min=2005, max=2040, value=2005, animate=animationOptions(interval=1500), step=1),

. , , , - . , server.R, , , .

Update:

Shiny. , sep " ", . , , ( ) sliderInput. , sep . , , shiny , . , , sep, . , , NaN. , . , sliderInput. , .

Update2

. Shiny , jQuery ion.rangeSlider. , 2.0.2. , NaN, ( ?). ion.rangeSlider (2.0.6). , shiny ion.rangeSlider.

, . :

  • , R
  • shiny\www\shared\ionrangeslider\css
  • ion.rangeSlider.skinShiny.css
  • shiny\www\shared\ionrangeslider
  • .zip ion.rangeSlider
  • ion.rangeSlider-master ionrangeslider, 2
  • ion.rangeSlider.skinShiny.css \www\shared\ionrangeslider\css

shiny, .

+9

All Articles