Learn R Programming

tableHTML (version 2.1.2)

render_tableHTML: Implementing tableHTML in shiny

Description

This function is used to implement tableHTML in a shiny app. This function is used in the shiny server.R file. Internally, it just calls renderUI, since tableHTML creates HTML code.

Usage

render_tableHTML(expr, ...)

Arguments

expr

A tableHTML object.

...

Other arguments passed along to shiny::renderUI().

See Also

Examples

Run this code
if (FALSE) {

library(shiny)
shinyApp(
 ui = fluidPage(
  fluidRow(
  #leave some spacing
  br(),
  column(width = 1),
  tableHTML_output("mytable"))
 ), 
server = function(input, output) {
 output$mytable <- render_tableHTML( 
  tableHTML(mtcars)
 )}
)

}

Run the code above in your browser using DataLab