Skip to content

Instantly share code, notes, and snippets.

@trestletech
Created June 19, 2013 05:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trestletech/5811788 to your computer and use it in GitHub Desktop.
Save trestletech/5811788 to your computer and use it in GitHub Desktop.
Bug in shiny's renderUI function?
require(shiny)
shinyServer(function(input, output) {
val <- reactive({
if(input$change>0) {
# Option 1
'abc'
# # Option 2
# isolate({
# paste('abc',input$txt,"")
# })
} else {
''
}
})
output$textbox <- renderUI({
textInput("txt","Text",val())
})
})
require(shiny)
require(shinyIncubator)
shinyUI(pageWithSidebar(
headerPanel('Test'),
sidebarPanel(
uiOutput("textbox"),
actionButton("change", "Change")
),
mainPanel(
)
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment