Below is the code I have written. I am not able to use formattable in my shiny. formattable helps in formatting the tables and improves the visualization also.
library("shinydashboard")
library("shiny")
library("formattable")
body <- dashboardBody(
fluidRow(
column(width = 12,
box(tableOutput(formattable(test.table, list())))
)
)
)
ui <- dashboardPage(
dashboardHeader(title = "Column layout"),
dashboardSidebar(),
body
)
server <- function(input, output) {
test.table <- data.frame(lapply(1:8, function(x) {1:10}))
output$table <- renderTable({test.table})
}
shinyApp(ui = ui, server = server)
output$table <- renderTable({ formattable(test.table) }), and just the name of the output in the output function,fluidRow(column(width = 12, tableOutput('table'))). - RorschachrenderFormattableandformattableOutput, they probably do what you want, and if not all you need to do is change the css associated with the table container - Rorschach