Skip to content
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

Add API method for showing OS notifications; integrate with jobs #3960

Open
jmcphers opened this issue Nov 28, 2018 · 6 comments
Open

Add API method for showing OS notifications; integrate with jobs #3960

jmcphers opened this issue Nov 28, 2018 · 6 comments

Comments

@jmcphers
Copy link
Member

Today, if you're running some code in RStudio that might take a while, there's no good mechanism for getting notified when it's done. There are a variety of R packages that can help, but the only truly cross-platform solution emits a simple beep, which isn't much help if you're away from your desk.

RStudio's API could add a method that would show a simple text notification, to be optionally used at the end of a long task. With the appropriate backends, it could show:

You could call this API at the end of your R Script to show a custom notification on completion. Optionally, we'd also show you an auto-generated notification:

  1. When the IDE does not have focus, and an R command that took more than N seconds has finished executing
  2. When a background job (in the Jobs pane) that took more than N seconds has finished
  3. When indicated beforehand (gesture TBD) that a notification should be shown after completing the background job or R command about to be executed

Other interesting resources:

@jmcphers
Copy link
Member Author

Also worth thinking about: the console's global progress bar (which summarizes the progress of all currently running background jobs) could be mirrored in the dock/taskbar. We're not using Electron, but this summarizes the idea well:

https://electronjs.org/docs/tutorial/progress-bar

@jmcphers jmcphers added the jobs label Nov 28, 2018
@jimhester
Copy link
Contributor

FWIW https://github.com/gaborcsardi/notifier is cross platform and works well on macOS at least, it is what I have used since it was released.

1 similar comment
@jimhester
Copy link
Contributor

FWIW https://github.com/gaborcsardi/notifier is cross platform and works well on macOS at least, it is what I have used since it was released.

@clayzermk1
Copy link

clayzermk1 commented Dec 2, 2020

As someone who is new to R, it would be great to get a desktop notification when execution of a block finishes.

@rjake
Copy link

rjake commented Jan 9, 2021

I just want the window to flash when it's done and to have the option in the API. This behavior is part of my SQL IDE and helps immensely. I can make a separate issue if you prefer. Could be nice to choose:

  • windows notification
  • flash 3 times
  • flash indefinitely
  • beep

Update: Chiming back in to say utils::winDialog() is another option that might help others: winDialog(message = "all done")

@gtritchie gtritchie added this to the v1.5 milestone Feb 4, 2021
@mikebessuille mikebessuille modified the milestones: 1.5 (Q3 2021), Electron Apr 14, 2021
@gtritchie
Copy link
Member

Taking this out of the Electron milestone. This isn't Electron-specific, and we aren't trying to add new features as part of the initial Electron release, just parity with the existing Desktop.

@gtritchie gtritchie removed this from the Electron milestone Nov 19, 2021
@mikebessuille mikebessuille added this to the 2024 milestone May 16, 2022
@mikebessuille mikebessuille modified the milestones: Future-4, Later Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants