-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pressing Done should close browser window #3
Comments
The problem is that when you are executing within a top-level browser window you can't programmatically close the window (this is a restriction that browsers impose). Shiny does post a "disconnected" message to the containing frame and when a Shiny app is running within an RStudio window this message is caught and the window is automatically closed. @jcheng5 I think that the |
Thanks. I'll wait for a change like the one you describe. On Fri, Jan 22, 2016 at 4:41 PM, JJ Allaire [email protected]
|
@jjallaire I didn't think the captive browser window was directly exposed to us? The default runApp lets RStudio choose I think. I would love to be able to do this. |
We set options(shiny.launch.browser) internally so I think if you just I think you might need a windowViewer function which has this behavior On Fri, Jan 22, 2016 at 8:41 PM, Joe Cheng [email protected] wrote:
|
Suppose an Addin is written to open in a browser window. When the user clicks the Done button, the window darkens but does not disappear. It seems that the window should be made to disappear. However, when I write the app so as to force this action, I see no effect. For example, consider the following modification of the subset Addin:
I can verify that message-handler script makes it into the head of the document, but the message sent in
observeEvent()
appears to be ignored. Am I doing something wrong?The text was updated successfully, but these errors were encountered: