Learn R Programming

SimDesign (version 2.19.2)

new_PushbulletNotifier: Create a Pushbullet Notifier

Description

Constructs a notifier object for sending messages via Pushbullet. This requires a Pushbullet account, the Pushbullet application installed on both a mobile device and computer, and a properly configured JSON file (typically ~/.rpushbullet.json, using RPushbullet::pbSetup()).

Usage

new_PushbulletNotifier(
  config_path = "~/.rpushbullet.json",
  verbose_issues = FALSE
)

Value

An S3 object of class "PushbulletNotifier" and "Notifier".

Arguments

config_path

A character string specifying the path to the Pushbullet configuration file. Defaults to "~/.rpushbullet.json".

verbose_issues

Logical. If TRUE, includes detailed information about warnings and errors in notifications. Default is FALSE.

Details

To use RPushbullet in SimDesign, create a PushbulletNotifier object using new_PushbulletNotifier() and pass it to the notifier argument in runSimulation().

Examples

Run this code
if (FALSE) { # interactive()
# Create a Pushbullet notifier (requires a valid configuration file)
pushbullet_notifier <- new_PushbulletNotifier(verbose_issues = TRUE)
}

Run the code above in your browser using DataLab