-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Closing RStudio Shiny app causes error #854
Comments
This sounds like it could be related to #869. However, I'm not able to reproduce the problem on my Win 8.1 VM. I am also using a newer version of RStudio (0.99.370) , R (3.1.3), and Shiny (0.12.1). I'd suggest first trying with a newer version RStudio, then R, and then Shiny. If it still doesn't work, let us know |
Thanks for the follow-up. The issues do seem related. I updated and still have the issue though the warning is different. Image is attached but the warning is "Called from: Sys.sleep(0.001)". Again no warning with runApp() by itself but with runApp within a function. This is not a huge issue but it is a nuisance when developing. Rstudio version of 0.99.446, R 3.2.0 and Shiny 0.12.1.
locale: attached base packages: other attached packages: loaded via a namespace (and not attached): |
I have this problem as well with my Add-In GREA. Closing the App causes the |
@zross I have in a way the same problem. When i press the hit button then 1000 hi are printed.But if I go and close the app window while it is printing then it crashes.Did you find how to solve it?
|
Closing because I wasn't able to reproduce this on RStudio 1.2.1304/R 3.5.2/Shiny 1.3.2/Windows 10, so presumably the problem has since been resolved, either via RStudio or Shiny changes. If you feel the original problem has not been resolved, please don't hesitate to comment further or create new issues. |
I'm having this same issue with a package I'm working on with a shiny app. Problem only arises when runApp is called from a different function. I can reproduce @zross 's issue above on my windows machine (session Info below). No problems on my Mac.
Matrix products: default locale: attached base packages: other attached packages: loaded via a namespace (and not attached): |
@pcross-usgs We are in the process of releasing a new version of Shiny and many of its supporting packages. Hopefully they will all be on CRAN by the middle of next week, but we can't say for sure. If, after the packages are on CRAN, you upgrade shiny and still have this problem, please file a new issue (and reference this one). |
Thanks @wch my application no longer has this issue with shiny, for reasons I don't understand. However, I am still able to recreate the initial error that started this. |
When launching a Shiny app using runApp() in RStudio by itself everything works fine. When I use runApp() within another function, however, the app launches fine BUT when I close the app window I get an error.
As an example here is a test app:
If I run:
runApp(testapp)
The app launches just fine and when I close the window I get no errors.
But if I run the runApp function within another function such as:
The app launches fine but when I close the app window I get the error:
Windows 7, RStudio 0.98.1103, R 3.1.2, shiny_0.11.1.9005
The text was updated successfully, but these errors were encountered: