Is it possible have some parts of RShiny app execute in a delayed fashion much like the Delayed start in Windows Services?
Let me elaborate.
I have a shiny app with tabs. Each tab have a bunch of radio buttons on the sidebarPanel. Clicking on each radio button brings up a report. My set up is as simple as this.
However when I load the app every time and when the first tab is auto rendered, all reports associated with all radio buttons under this tab is executed and then the first radio button is selected and its correlating report is displayed. This whole process takes about 10-11 seconds which I want to bring down.
During server start, I simply read my myData.RData file in global.R. So all data is pre-fetched (and I am assuming kept in memory) during server start. What happens when the tab is brought to focus is that the data.frames from myData.RData are read and a series of ggplots (renderPlot) and tables (renderText) are called.
Is there a way I can render the first report within few seconds and then proceed to executing other ggplots and tables? I did go thru reactivity conductors and isolations but couldn't figure what solution fits my problem here.
Or is there any other way I can speeden the load (and refresh) time?
--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Thank you here as well Joe :). Didn't know if stack overflow or Google groups was a good place. Hence repeated the post in both places.
Yes :) I am trying your solution now. Will accept in a few minutes after I retrofit it into my stack.
On Wed, Dec 11, 2013 at 11:31 AM, Joe Cheng <j...@rstudio.com> wrote:
No problem. You can thank me by "accepting" my answer on Stack Overflow. :)
On Tue, Dec 10, 2013 at 9:10 PM, Rohith V <roh...@gmail.com> wrote:
Thank you here as well Joe :). Didn't know if stack overflow or Google groups was a good place. Hence repeated the post in both places.
--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discuss+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
Hmmm, I swear this worked on my machine before I posted. Try changingif (values$starting)return(NULL)toif (values$starting) {invalidateLater(0, session)return(NULL)}Though it would be great if this were not necessary (I'll have to think about it).
On Wed, Dec 11, 2013 at 12:24 AM, Rohith V <roh...@gmail.com> wrote:
Is this, by any chance applicable to renderText only? I couldn't locate any documentation on session and onFlused events. My renderPlot didn't seem to render quickly.
Rohit
On Wednesday, 11 December 2013 11:33:20 UTC+5:30, Rohith V wrote:
Yes :) I am trying your solution now. Will accept in a few minutes after I retrofit it into my stack.
On Wed, Dec 11, 2013 at 11:31 AM, Joe Cheng <j...@rstudio.com> wrote:
No problem. You can thank me by "accepting" my answer on Stack Overflow. :)
On Tue, Dec 10, 2013 at 9:10 PM, Rohith V <roh...@gmail.com> wrote:
Thank you here as well Joe :). Didn't know if stack overflow or Google groups was a good place. Hence repeated the post in both places.
--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.