Description Usage Arguments Methods (by class) Examples
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
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, ...)
|
notification |
A list with at least a message and a start element. Extra elements depend on the type of notification. |
telegram
: Send a Telegram notification
email
: Send an email notification
sound
: Play a sound notification
default
: Print a notification
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.