I\'m experimenting a Shiny App to show dynamic contexts, but I cannot get renderDataTable
working into a renderUi
component.
Below two simple replicabl
It would be clearer if you split the part of datatable
generation and ui
generation :
library(shiny)
runApp(list(
ui = fluidPage(
mainPanel(
uiOutput('myTable')
)
),
server = function(input, output) {
output$aa <- renderDataTable({iris})
output$myTable <- renderUI({
dataTableOutput("aa")
})
}
))