Temporary data input/output

There are three levels of scoping within the temporary, portable part of a Shiny application:

  • The lowest level is data that is read-only within each individual instance of a Shiny application. This level is quite useful if a user wants a fresh copy of data each time they visit the application (if data needs to be even fresher than this, it can be placed in a reactive function). Any data loaded after the shinyServer() function will be scoped like this. Note that this data is only available from the server.R file and not from the ui.R file, which is loaded first.
  • The next level up is data that is available to all instances of the application (again, just within server.R). This can be useful if there is a very large ...

Get Web Application Development with R Using Shiny - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.