testTriggers: Test Mobile Triggers

Description Usage Arguments Value Examples

Description

Tests to make sure communication between R and your e-mail client is working as expected with MobileTriggers.

Usage

1
2
testTriggers(TestWhat = "Lists", path = NULL, Mail.To = NULL,
  Mail.From = NULL, Mail.From.SMTP.Settings = NULL)

Arguments

TestWhat

string, options: "Lists", "RunModels", "RunScripts", "RunReports"

path

string, top level folder called the [TriggerPath]

Mail.To

string, e-mail address that will trigger your e-mail client (e.g., Outlook or Thunderbird).

Mail.From

string, e-mail address of the mobile device. (simulation purposes)

Mail.From.SMTP.Settings

list, list of SMTP settings to send to mailR::mail.send.

Value

Sends test messages to your email client.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#################################
# Test Triggers                 #
#################################

testTriggers(
  TestWhat = "Lists",
  # TestWhat = "RunModels",  # Other Test Options
  # TestWhat = "RunScripts", # Other Test Options
  # TestWhat = "RunReports", # Other Test Options
  path = path,
  Mail.To = "[desktop.client@home.com]",
  Mail.From =  "[your.mobile@gmail.com]",
  Mail.From.SMTP.Settings =
  list(host.name = "smtp.gmail.com",
       port = 587,
       user.name = "[your.mobile@gmail.com]",
       passwd = '[TVs_With_Knobs]',
       tls = TRUE)
  )

MobileTrigger documentation built on May 16, 2019, 5:08 p.m.