Description Usage Arguments Value Examples
Tests to make sure communication between R and your e-mail client is working as expected with MobileTriggers.
1 2 | testTriggers(TestWhat = "Lists", path = NULL, Mail.To = NULL,
Mail.From = NULL, Mail.From.SMTP.Settings = NULL)
|
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. |
Sends test messages to your email client.
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)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.