1. Learn
  2. /
  3. Courses
  4. /
  5. Creating Dashboards with shinydashboard

Exercise

View real-time data

Now that you've read in the real-time data as reactive_starwars_data(), you can examine it as it updates using renderTable(). If you save this reactive table, you can then render it using the tableOutput() function. For example, if we had a reactive data frame called my_reactive_data() we could save this as output$my_table and render it using tableOutput() with the following code:

server <- function(input, output, session) {
  output$my_table <- renderTable({
    my_reactive_data()
  })
}

body <- dashboardBody(
  tableOutput("my_table")
)

Instructions

100 XP
  • Using the reactive dataset you just read in, create a reactive table called output$table.
  • Render this table in the body.
  • Rerun the shiny app with these updates.