Trivial style copy edits to example 10_download

This commit is contained in:
Joe Cheng
2012-11-26 21:48:03 -08:00
parent 0b469f09df
commit 595801cb99
2 changed files with 5 additions and 4 deletions

View File

@@ -12,7 +12,8 @@ shinyServer(function(input, output) {
output$downloadData <- downloadHandler(
filename = function() { paste(input$dataset, '.csv', sep='') },
content = function(conn) {
write.csv(datasetInput(), conn)
})
content = function(con) {
write.csv(datasetInput(), con)
}
)
})

View File

@@ -1,5 +1,5 @@
shinyUI(pageWithSidebar(
headerPanel('Download Example'),
headerPanel('Downloading Data'),
sidebarPanel(
selectInput("dataset", "Choose a dataset:",
choices = c("rock", "pressure", "cars")),