ListModels: List Available Models

Description Usage Arguments Value Examples

Description

Creates an HTML table for all or selected models in the [TRIGGER_PATH]/Models/ folder. This table is used as part of a message being sent out to a receiving e-mail client.

Usage

1
ListModels(path = NULL, SelectMDL = NULL)

Arguments

path

string, path to the /Models/ folder.

SelectMDL

integer, Model ID value determined from MobileTrigger::ListModels() output when SelectMDL = NULL

Value

If SelectMDL = NULL: An HTML table of all models in the /Models/ folder. If SelectMDL is a ModelID number from the complete model list it only returns and HTML table with the selected model

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
################################
# Get all the Available Models #
################################
  MODELPATH <- "C:/Triggers/Models/"
  HTML.Message <- ListModels(path = MODELPATH)
  ## Use the HTML.Message to send table of Models with MailR package.

#############################
# Get Selected Model        #
#############################
  HTML.Message <- ListModels(path = MODELPATH, SelectMDL = 1)
  ## Use the HTML.Message to send table of Selected Model with MailR package.

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