Cross Platform Desktop Notifications
Send desktop notifications from R, on macOS, Windows and Linux.
notifier
has been removed from the CRAN repository by request of the maintainer, but version 1.0.0 can still be installed from the CRAN archives with
install.packages("https://cran.r-project.org/src/contrib/Archive/notifier/notifier_1.0.0.tar.gz")
To install the latest version from GitHub, however, you may issue the following instead:
remotes::install_github("gaborcsardi/notifier")
notifier
has no R package dependencies, and no system requirements
other than the notify-send
command line tool on Linux and other
Unix-like systems. notify-send
is available in the default installation
on most Desktop Linux installations.
library(notifier)
notify(
title = "15 Packages out of date",
msg = c("You can run update.packages() to update them.",
"Outdated packages: Boom colorspace desc memuse networkD3",
"pbapply revealjs rgl rmdformats timevis and 5 more")
)
notifier
uses various tools on the different platform:
terminal-notifier
:
https://github.com/julienXX/terminal-notifiernotify-send
from
libnotify
.toaster
:
https://github.com/nels-o/toasternotifu
:
https://www.paralint.com/projects/notifuMIT © Gábor Csárdi
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.