Output a List in Shiny UI

Hi,

My application generates many list objects which I'd like to present in shiny in a nice format (i.e. think machine learned models). Right now it's easy to retrieve list elements through [[i]] syntax but I'm curious if there's a package or function which allows me (the developer) to arrange list elements into a nice looking output?

The following reprex is a simple example of several lists I'd like to present back on the UI as a nice looking shiny text report object which arranges the list outputs into a readable aggregation of lists. Like ggplot is able to present dataframe based graphs, I'm looking for something similar which allows presentation of text lists.

Any ideas? thanks

library(shiny)

ui <- fluidPage(
titlePanel("List Output"),
textOutput("List")
)

server <- function(input, output) {

output$List <- renderText({
x <- c("Model Setting", "Upsample", "Remove", "Keep", "CV", "Repeats")
y <- c("rfFuncs", "Yes", "Yes", "Yes", 10, 2)
z <- c("General Comments about this Application")
w <- c("would like to create a nice looking shiny output for end user")
list <- list(x, y, z)
d <- list[[1]]
})
}

shinyApp(ui = ui, server = server)

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.