Created
September 4, 2014 23:53
-
-
Save kevinushey/04a045e71124b30c1aac to your computer and use it in GitHub Desktop.
Input slider has some bugs when used through uiOutput
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
## Example | |
# shinyServer(function(input, output) { | |
# output$value <- renderPrint({ input$sliderId }) | |
# }) | |
## uiOutput | |
shinyServer(function(input, output) { | |
output$slider <- renderUI({ | |
sliderInput("sliderId", label = h3("Slider Range"), min = 0, max = 100, | |
value = c(25, 75)) | |
}) | |
output$value <- renderPrint({ input$sliderId }) | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
## Example | |
# shinyUI(fluidPage( | |
# sliderInput("sliderId", label = h3("Slider Range"), min = 0, max = 100, | |
# value = c(25, 75)), | |
# fluidRow(column(3, verbatimTextOutput("value"))) | |
# )) | |
## uiOutput | |
shinyUI(fluidPage( | |
uiOutput("slider"), | |
fluidRow(column(3, verbatimTextOutput("value"))) | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment