Created
February 6, 2016 01:04
-
-
Save csgillespie/dfed8e3a8796d603ae2d to your computer and use it in GitHub Desktop.
This file contains 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
## Save as Server.R | |
library("shiny") | |
#x = USArrests | |
#save(x, file="/tmp/tmp.RData") | |
server = function(input, output){ | |
load("/tmp/tmp.RData") | |
output$table = output$table1 <- renderTable({x}) | |
} | |
## Save as ui.R | |
library("shiny") | |
ui = fluidPage( | |
fluidRow( | |
column(3, tableOutput("table")) | |
) | |
) | |
## To run | |
shiny::runApp("/tmp/") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment