ficonsulting / ficonsulting/RInno

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

Open
#159 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
313
Forks
66
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.