Learn R Programming

notifyme (version 0.3.0)

send_push_notification: Send push notification to devices

Description

This function will send a push notification to your device via the push over API. You must make an account with that service (pushover.net) and get an API key and userkey.

Usage

send_push_notification(title = "Your R session says:", message = paste0("Message sent: ", Sys.time()), api_token = NULL, user_key = NULL, priority = "medium", file = "~/r_keychain.rds")

Arguments

title
Title of the push notification. Defaults to message from r.
message
Message body. Default just tells time message sent.
api_token
API token - create your own in a few minutes from pushover.net dashboard.
user_key
This is the key that identifies you. It's on the pushover.net dashboard.
priority
'low' means no beep/vibrate, 'medium' means beep/vibrate, 'high' means require response on device.
file
Optional - location of keychain if using.

Examples

Run this code
## Not run: send_push_notification(user_key = "xxxxxx", api_token = "xxxxx")

Run the code above in your browser using DataLab