Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

action button + observeEvent(....,{stopapp()}) doesn't work with Rinno ? #159

Open
alexis552 opened this issue Nov 2, 2020 · 0 comments

Comments

@alexis552
Copy link

Hello,

I have a problem with the stopapp() function when I use it with an actionbutton() + observeEvent().

My goal: quit the application by clicking on a "stop application" button.

observeEvent(input$stop,{
print("7/7......fermeture de l'application")
stopApp()
})`

The problem is that it doesn't quit the application when I use it.
I thought this was fixed with the following code at the end of my script :

if (!interactive()) { session$onSessionEnded(function() { print("Closing the app") stopApp() q("no") }) }

... but it seems not.

Any ideas?

Thanks,

Alexis

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant