4 ms·
Is there any way to cache, or memorize calculations in Shiny?
by macarthy12 13y ago
Is there any way to cache, or memorize calculations in Shiny?
- Blahah 13y agoYes, the whole paradigm is to use 'reactive' functions - i.e. functions whose output is cached.
- macarthy12 13y agoI guess I'm wondering it cache across requests?
- jcheng 13y agoIn the Shiny framework we think less about short-lived HTTP requests, and more about long-lived (websocket) sessions. Reactive expressions cache their results within or across sessions, depending on where they are declared (this is just a natural result of R's lexical scoping). http://rstudio.github.io/shiny/tutorial/#scoping http://rstudio.github.io/shiny/tutorial/#scoping