notify: Send a notification

Description Usage Arguments Methods (by class) Examples

View source: R/notify.R

Description

Uses the elements of the notification object to determine the message to send, and sends it. See notification for details of the notification object.

Send a Telegram notification

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
notify(notification, ...)

## S3 method for class 'telegram'
notify(notification, ...)

## S3 method for class 'email'
notify(notification, ...)

## S3 method for class 'sound'
notify(notification, ...)

## Default S3 method:
notify(notification, ...)

Arguments

notification

A list with at least a message and a start element. Extra elements depend on the type of notification.

Methods (by class)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
notification <- list("message" = "Done", start = Sys.time())
notify(notification)

## Not run: 
 notification <- telegram("user", token = getToken())
 notification$start = Sys.time()
 notification$message = "Done"
 notify(notification)

## End(Not run)

sjoerdvds/rudone documentation built on May 30, 2019, 12:05 a.m.