R Module Overview
- 25 Jun 2021
- 1 Minute to read
- Print
- DarkLight
This documentation version is deprecated, please click here for the latest version.
R Module Overview
- Updated on 25 Jun 2021
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
Overview
The R Module allows a user to execute R scripts. R is a programming language that is used for statistical computing and graphics.
The R Module will need to be installed. To learn how to install modules, see Installing Modules in Decisions. To run R scripts, install R to the system by going to https://cran.r-project.org/bin/windows/base/.
Example
The below file will be used in the following example. Click the link below to download.
This example will demonstrate how to execute an R script.
- Navigate to System > Settings and click R Module Settings. Enter the path where R is installed. Then, click SAVE.
- Navigate to System > Integrations. Right-click on R Script Projects and select Add Script Project.
- Name the Script Project (R Test Script) and click SAVE.
- Right-click on the R Script Project and select Add Script.
- Name the Script (Example R Script) and upload a valid R file. Then, click OK.
- In a Designer Project, click CREATE FLOW, select Default under the Flow category, and click CREATE. Name the Flow (R Module Flow) and click CREATE.
- Click on the Done path of the Start step. Navigate to Integrations > All Integrations > R > R Test Script. Select Example R Script step and click ADD.
- Connect the Success and Error paths to the End step. Click Save to save changes to the Flow.
Debug
- On the top action bar, click Debug. Then, click FULL.
- After the debugger runs, click on the script step, click Execution 1, and select View Output Data.The Output Data will display the execution of the R script.
Was this article helpful?