Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sliderInput bug #301

Closed
stla opened this issue Nov 21, 2013 · 2 comments
Closed

sliderInput bug #301

stla opened this issue Nov 21, 2013 · 2 comments
Milestone

Comments

@stla
Copy link

stla commented Nov 21, 2013

The step argument is guilty (or do I miss something ?)


library(shiny)

runApp(
  list(

    server=function(input, output, session) {},

    ui=pageWithSidebar(

      headerPanel("bug with slider Input"),

      sidebarPanel(

        sliderInput(inputId="slider", label="", min=1, max=5, value=1, step=2)

      ),

      mainPanel()

    )
  )
)
@johnpauls
Copy link

I have also seen a bug with sliderInput(). I had a slider which had only integers (2005 to 2013), had its values set to c(2005,2013) and it worked fine. However, when I added step=1 and round=TRUE it returned NULL rather than two values. As it happened what I wanted was the default behavior anyway, but I think adding the step and round options should have worked as well.

@yihui
Copy link
Member

yihui commented Nov 27, 2013

Confirmed. Thanks for the report!

@yihui yihui modified the milestones: 0.10.0, 0.9.0 Apr 3, 2014
@yihui yihui modified the milestones: 0.10.1, 0.10.0 Jun 16, 2014
@wch wch closed this as completed in 50adb5f Sep 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants