Does stopApp() work well ?

29 views
Skip to first unread message

Stéfane

unread,
Mar 31, 2015, 12:37:11 PM3/31/15
to shiny-...@googlegroups.com
Hello,

I'm using with a great pleasure the shiny extension in R. I've built a web application that shows an image pair. The application has a button to change the image pair. When the user clicks on it 20 times the application must stop. I try the function stopApp() but nothing happens. Do you know if there is a way to do it ?

Thank you in advance,
Stéfane

Jonah

unread,
Mar 31, 2015, 6:16:39 PM3/31/15
to shiny-...@googlegroups.com
How exactly are you using stopApp()? 

If you use an actionButton then it will count for you and then you can use an observer to run stopApp() when the count is 20. In that context stopApp() should work. 

Joe Cheng

unread,
Mar 31, 2015, 6:30:32 PM3/31/15
to Jonah, shiny-...@googlegroups.com
Just to be clear, stopApp() will stop the application for ALL connected users and exit the runApp() loop. It won't just terminate the session of the current user, if that's what you want.

I guess we really ought to have a close() method on the session object...

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/79f63686-5003-47e8-97ff-0dd59840300f%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Jonah Sol Gabry

unread,
Mar 31, 2015, 6:36:17 PM3/31/15
to Joe Cheng, shiny-...@googlegroups.com
A close() method would be great 
Reply all
Reply to author
Forward
0 new messages