Riksrevisjonen / pioneeR

R package for running a Shiny app for DEA analysis
https://riksrevisjonen.github.io/pioneeR/
GNU General Public License v3.0
6 stars 2 forks source link

88 add caching to app #110

Closed ohjakobsen closed 2 weeks ago

ohjakobsen commented 3 weeks ago

This PR closes #85 and #88 by adding caching in the Shiny app, which most users will use. One downside with caching bootstrapped results, is that this masks the inherent stochastic nature of the bootstrap, as values will stay the same for each model. I've therefore added a way to clear the cache by setting a random cache key that the bindCache() function depends on.

I need a second opinion on the implementation before I finish this PR and (possible) extend the caching technique to other model reactive as well.