An R interface to jExcel library to create web-based interactive tables and spreadsheets compatible with ‘Excel’ or any other spreadsheet software.
To install the stable CRAN version:
install.packages('excelR')
To install the latest development version from GitHub:
library(devtools)
install_github('Swechhya/excelR')
library(excelR)
= data.frame(Model = c('Mazda', 'Pegeout', 'Honda Fit', 'Honda CRV'),
data Date=c('2006-01-01', '2005-01-01','2004-01-01', '2003-01-01' ),
Availability = c(TRUE, FALSE, TRUE, TRUE))
= data.frame(title=c('Model', 'Date', 'Availability'),
columns width= c(300, 300, 300),
type=c('text', 'calendar', 'checkbox'))
excelTable(data=data, columns = columns)
This package can be used in shiny
library(shiny)
library(excelR)
shinyApp(
ui = fluidPage(excelOutput("table")),
server = function(input, output, session) {
$table <-
outputrenderExcel(excelTable(data = head(iris)))
} )