Learn R Programming

MobileTrigger (version 0.0.31)

MailTriggerInput: Get Input From a Mail Trigger Message

Description

Parses inputs from a message saved when the e-mail client run its rules. Parser is looking for UseModel, UseScript, or UseReport follow by a number (ID) associated with Model, Script, or Report. For reports and scripts there is also the option to supply comma separated data.

Usage

MailTriggerInput(InputPath)

Arguments

InputPath

string, path to a saved e-mail message from your e-mail client Likely filenames in the [TriggerPath] are modelInput.txt, ScriptInput.txt, or ReportInput.txt

Value

list, ID, integer ID of the model, script, or report selected. data, data.frame of any supplied inputs.

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
#################################
# Get E-mail Trigger Input      #
#################################

## The file is a saved e-mail message from your e-mail client
  MDL_Input <- MailTriggerInput(InputPath="c:/triggers/modelInput.txt")
  SCRPT_Input <- MailTriggerInput(InputPath="c:/triggers/ScriptInput.txt")
  RPT_Input <- MailTriggerInput(InputPath="c:/triggers/ReportInput.txt")
# }

Run the code above in your browser using DataLab