Created
September 11, 2013 14:09
-
-
Save trestletech/6524113 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
shinyServer(function(input, output) { | |
dataset = reactive({ | |
infile = input$file1 | |
if (is.null(infile)) | |
return(NULL) | |
infile_read = read.xlsx(infile$datapath, 1) | |
}) | |
output$summary <- renderPrint({ | |
summary = summary(dataset()) | |
return(summary) | |
}) | |
outputOptions(output, "summary", suspendWhenHidden = FALSE) | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
shinyUI(pageWithSidebar( | |
headerPanel("Analysis"), | |
sidebarPanel(wellPanel(fileInput('file1', 'Choose XLSX File', | |
accept=c('sheetName', 'header'), multiple=FALSE))), | |
mainPanel( | |
tabsetPanel( | |
tabPanel("Tab1",h4("Summary"), htmlOutput("summary")) | |
))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment