## Not run:
# # Per-session reactive file reader
# function(input, output, session) {
# fileData <- reactiveFileReader(1000, session, 'data.csv', read.csv)
#
# output$data <- renderTable({
# fileData()
# })
# }
#
# # Cross-session reactive file reader. In this example, all sessions share
# # the same reader, so read.csv only gets executed once no matter how many
# # user sessions are connected.
# fileData <- reactiveFileReader(1000, session, 'data.csv', read.csv)
# function(input, output, session) {
# output$data <- renderTable({
# fileData()
# })
# }
# ## End(Not run)
Run the code above in your browser using DataLab