Define Parameters in R Scripts

When you define a parameter, you are specifying whether each parameter in the R script is an input or output parameter, whether it is required, and what type of data it requires.

Steps

  1. Access the R script for which you want to define parameters.

  2. At the bottom of the page, select Parameters.

    The Parameters pane appears.

  3. Select .

    A new row is added to the grid.

  4. In the ID cell, enter the parameter ID exactly as it appears in the R script.
  5. In the Name cell, enter a name for the parameter as you want it to appear to the R script user.
  6. In the Type list, select the data type of the parameter.
  7. In the Direction list, specify whether the parameter represents an input or an output to the R script.
  8. If the parameter is an input and is required, select the Required check box.
  9. For each parameter in the R script, repeat steps 3 through 8.

  10. Select .

    The R script parameters are defined.

Copyright © 2018 General Electric Company. All rights reserved.