renderExcel: 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
renderExcel(expr, env = parent.frame(), quoted = FALSE)

Arguments

expr

an expression that generates an excelTable.

env

the environment in which to evaluate expr.

quoted

is expr a quoted expression(with quote())? This is useful if you want to save an expression in a variable.

See Also

excelOutput

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.