R Code Transformation

The R Code transform lets users leverage R code when applying transformations to a prepared a source.

Similar to the Index column, the R Code transform is only active for the entire prepared source and not when you select a column in the source.

Note:  The R Code transform is not active if you did not set up your R server Connectivity in Modeler Connect.
  1. From Modeler Prepare, select a prepared source.
  2. Click Add Transformation.
  3. Select the R Transformation to run R code against a prepared source:
  4. Specify the R code script in the editor box to complete your R transformation.


    Note: You are Provided with guidance for your R code script entry:

  5. Click Validate to validate the script you specified.
    A successful validate message is displayed if the script passes the validation. If an error message displays, fix the script and try again.
  6. After the code is validated successfully, click Done.
  7. View the results of the R code transformed prepared source.


Saving the R transform updates the prepared source with sample data based on the R code returned results from the R server. You can then add any subsequent steps to your prepared source. Publishing the prepared source runs the R code on the entire data set. The prepared source can be schedule for import.