r - output shiny app object details in UI -
my shiny app has large cached object loading on startup, using readrds(), leveraged in shinyserver() processing populate shinyui() defined textoutput().
is there trick populating textoutput ui says "loading cache object . . . " before readrds() call , changes saying "loaded cache object of size, object.size(cacheloadedobject)" once has finished loading?
the reason bit of ui behavior matters app input boxes accept input prior object being loaded disk not functional until reactive() , rendertext() textoutput updates trigger can't calculated until cached object loaded.
looked @ "shiny app loading ui" hits , didn't find on scenario.
you use shiny busy indicator show text while object loading. may find following links interesting:
http://deanattali.com/blog/advanced-shiny-tips/#busy-indicator
in addition hide/disable input fields (using shinyjs) on loading , enabling them when loading finished. see here more information:
Comments
Post a Comment