1
は私のコードです:Rタブパネルとここで出力
shinyServer <- function(input, output) {
output$text_out <- renderText({
paste("You have selected", input$text_input)
})
}
shinyUI <- fluidPage(
titlePanel("censusVis"),
fluidRow(
column(3, textInput('text_input', label = 'some label', value ='')),
column(9,
tabsetPanel(
tabPanel('result',
fluidRow(
column(12, h3('Test_header'),
textOutput('text_out')
)
)
),
tabPanel('some panel', tableOutput('table')),
tabPanel('another panel', tableOutput('table'))
)
)
)
)
shinyApp(ui=shinyUI, server = shinyServer)
それは動作しますが、私はその行"You have selected"
が現れ、コードtabPanel('another panel', tableOutput('table'))
に次の行をコメントする場合には、ライン"You have selected"
を表示しません。何が間違っているのか知っていますか?なぜtabPanelが出力に影響しますか?