knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

rnotify

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.

Installation

Node Module

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"

R Package

remotes::install_github("ColinFay/rnotify")

Run

Launch notification with:

library(rnotify)
new_notif(
  "Ended", 
  "Come back to R now!"
)

Only title and message are mandatory. Other possible args are:

Returned object

The returned object from new_notif() is the result processx::process$new() and can be handled as such.

Prior work

CoC

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.



ColinFay/rnotify documentation built on May 7, 2019, 8:20 a.m.