Execute R Actions

Execute R actions apply a set of R statements to one or more input parameters. The results are stored in one or more output datasets.

Action Property Description

Boolean1

A Boolean parameter or dataset which may provide input data for the action.

Boolean2

A second Boolean parameter or dataset which may provide input data for the action.

Float1

A Float parameter or dataset which may provide input data for the action.

Float2

A second Float parameter or dataset which may provide input data for the action.

Image Sequence

If an Execute R action generates more than one chart, the Image Sequence String List parameter should be set to a list of Image action property names, using a separate string element for each name. As the charts are generated, they are assigned to the Image action properties in sequence. See the ‘Graphics’ section in the Execute R Action Statements topic for an example.

Integer1

An Integer parameter or dataset which may provide input data for the action.

Integer2

A second Integer parameter or dataset which may provide input data for the action.

PairList1

A Pair List parameter or dataset which may provide input data for the action.

PairList2

A second Pair List parameter or dataset which may provide input data for the action.

ResultBoolean

A Boolean dataset which may be used to store a result Boolean value generated by the action.

ResultFloat

A Float dataset which may be used to store a result float value generated by the action.

ResultImage1

An Image dataset which may be used to store a result image generated by the action.

ResultImage2

A second Image dataset which may be used to store a result image generated by the action.

ResultInteger

An Integer dataset which may be used to store a result integer value generated by the action.

ResultPairList

A Pair List dataset which may be used to store a result Pair List generated by the action.

ResultString

A String dataset which may be used to store a result string value generated by the action.

ResultStringList

A String List dataset which may be used to store a result string list generated by the action.

ResultTable

A Table dataset which may be used to store a result table generated by the Execute R action.

Script

A String parameter or dataset which contains the name of a script file from the R script repository. A script file from the repository may be selected from a drop-down list. If the Script property is set, any Statements specified for the Execute R action will not be executed.

Statements

A String List parameter containing a set of R statements to be executed. Each R statement should be stored as a separate string element.

String1

A String parameter or dataset which may provide input data for the action.

String2

A second String parameter or dataset which may provide input data for the action.

StringList1

A String List parameter or dataset which may provide input data for the action.

StringList2

A second String List parameter or dataset which may provide input data for the action.

Table1

A Table parameter or dataset which may provide input data for the action.

Table2

A second Table parameter or dataset which may provide input data for the action.

Execute R actions support the use of the Define Action Parameters Wizard, which allows additional input or output action properties to be created of type Boolean, Integer, Float, String, String List, Pair List or Table, and additional output properties to be defined of type Image.

Example:

Execute R action example.

To examine the details for an Execute R action, double-click the action node, or select ‘View Details’ from the node’s context menu. The Details screen displays the number of simple and complex input and output types, the number of records read from source tables, the number of records written to result datasets, the number of R statements executed, the number of images created, and the time taken for the action to complete.

Execute R Action Statements

R Script Repository

Managing R Packages

Introduction to R