knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
A very simple wrapper around node-notifier CLI, "A Node.js module for sending notifications on native Mac, Windows and Linux (or Growl as fallback)" link.
You'll need to have a working installation of the Node JS module node-notifier-cli, which you can install with:
sudo npm i -g node-notifier-cli
Check that it works by running in your console:
notify -t "Hello" -m "My Message"
remotes::install_github("ColinFay/rnotify")
Launch notification with:
library(rnotify) new_notif( "Ended", "Come back to R now!" )

Only title and message are mandatory. Other possible args are:
subtitle Subtitle of the notification (not available on windows).sound Sound of the notificationThe returned object from new_notif() is the result processx::process$new() and can be handled as such.
Please note that the rnotify project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.