Create an R Script

Steps

  1. On the left navigation menu, select Tools, and then select R Scripts.

    The R Scripts page appears.

  2. Select Create New.

    The New R Script page appears, which contains the script editor.

  3. In the editor, enter your R code.

    Note:  When you use R scripts with policies, the policy execution engine sends date inputs to the R script in UTC. If your R script performs any calculations based on dates, the date output must also be in UTC and use the standard date format yyyy-MM-dd hh:mm:ss.fff.
  4. Define each parameter in the R script using the Parameters pane.

  5. Select .

    The Save As window appears.

  6. In the Catalog pane, navigate to the location at which you want to save the R script.
  7. Enter values in the Name, Caption, Description, and Of type boxes.
  8. Select Save.

    The R script has been saved.

Copyright © 2018 General Electric Company. All rights reserved.