SetupWindowsTrigger: Setup MobileTrigger Folder Structure and Files

Description Usage Arguments Value Examples

Description

This is the heart of the MobileTrigger package. You specify where you want your tigger folder to be and some e-mail information and this This function builds all the scripts you need to get started. At this time, the function works ONLY for windows users.

Usage

1
SetupWindowsTrigger(path = NULL, SMTP.Settings, Mail.To, Mail.From)

Arguments

path

string, top level folder called the [TriggerPath]

SMTP.Settings

list, list of smtp.setting to send to mailR::mail.send. See examples below for outlook and other styles of smtp setting might be specified

Mail.To

string, e-mail address you want MobileTriggers to respond to

Mail.From

string, e-mail address you want MobileTriggers to use to send.

Value

Sets up a folder and file structure at the [TriggerPath].

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#################################
# Setting of MobileTriggers     #
#################################

## OUTLOOK Style (uses tls = TRUE argument) ###
  SetupWindowsTrigger(path="c:/triggers",
                      Mail.To = "Your.Email@mobile.com",
                      Mail.From = "someuser@outlook.com",
                      SMTP.Settings=list(
                          host.name = 'smtp.office365.com',
                          port = 587,
                          user.name = 'someuser@outlook.com',
                          passwd = 'password', tls = TRUE)
  )

## Other STYLE (uses ssl = TRUE argument) ###
  SetupWindowsTrigger(path="c:/triggers",
                      Mail.To = "Your.Email@mobile.com",
                      Mail.From = "R.Triggers@desktop.com",
                      SMTP.Settings=list(
                          host.name = 'some.smtp.sever.com',
                          port = 587,
                          user.name = 'R.Triggers@desktop.com',
                          passwd = 'password', ssl = TRUE)
  )

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