Scoping, loading, and reusing data in Shiny applications

Although loading and reusing data in Shiny applications is covered in this chapter, because it is likely that these features would be used in a shinyapps.io-hosted application, much of it also applies to locally-run Shiny applications. If you use shinyapps.io, it will expect your application to be portable, that is, to avoid dependence on writing permanent changes to the local filesystem. This is because the application might be moved to another server for load-balancing purposes, rendering changes to the previous local filesystem inaccessible. You can write temporary files while a user is connected to the application (for example, if the user uploads their own data, this can be saved ...

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.