Learn R Programming

excelR (version 0.4.0)

excelOutput: Helper function for using jexcel table in Shiny

Description

Shiny bindings for excel table

Usage

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

Run this code
# NOT RUN {
if(interactive()) {
  library(shiny)
  library(excelR)
  shinyApp(
    ui = fluidPage(excelOutput("table")),
    server = function(input, output, session) {
      output$table <-
     renderExcel(excelTable(data = head(iris)))
     }
   )
}
# }

Run the code above in your browser using DataLab