excelOutput: Helper function for using jexcel table in Shiny

Description Usage Arguments See Also Examples

View source: R/shiny.R

Description

Shiny bindings for excel table

Usage

1
excelOutput(outputId, width = "100%", height = "400px")

Arguments

outputId

output variable to read from.

width, height

must be a valid CSS unit in pixel or a number, which will be coerced to a string and "px" appended.

See Also

renderExcel

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
if(interactive()) {
  library(shiny)
  library(excelR)
  shinyApp(
    ui = fluidPage(excelOutput("table")),
    server = function(input, output, session) {
      output$table <-
     renderExcel(excelTable(data = head(iris)))
     }
   )
}

Example output



excelR documentation built on March 13, 2020, 1:31 a.m.