Importing Data from R Scripts
You can import data directly from an R Script, either by entering the script directly in the task, or by referencing an external script file.
This type of operation may be useful if you want to apply an external script to data before using it in a Rulex flow, in order to perform a specific operation that requires a low-level programming language, such as deciphering badly formatted text files.
you must have created a flow;
R software is installed where Rulex is running.
Miniconda must have been installed on the machine where Rulex Factory is running.
Drag the Import from R script task onto the stage.
Double click the Import from R script task.
Configure the script options as described in the table below.
Save and compute the task.
Import from R script options
Advanced Configuration options
Select executable type
Select the executable type you want to use in the task. The options available are:
The Configuration tab changes according to the selected executable.
Executable file area
Drag the Python executable file on this area if you have chosen Python as the executable file type, or drag the conda executable file here if you have chosen Conda as the executable file type. You can browse on your machine to upload the file by clicking on the Select button.
Use user environment
Select this checkbox if you want to use the environment created by Rulex. This option is available only if Conda has been chosen as the executable file type.
Select Conda Environment
In this drop down list, choose the Conda environment you want to use in the task. This option is available only if Conda has been chosen as the executable file type.
Connect R Bridge
Click on it to open the Interactive Console, where you can write the code.
Here you can write the code which will be executed within the task.
The dataset is saved as
Click on this button to save the changes made to the code. The code will be printed in the Script.
Click on this button to delete all the changes made to the code.
Script tab (available for both Python and Conda executable files)
Here you can visualize and edit the code, just like in the Interactive Console in the Console tab.
Click this button to execute the code and visualize the results in the Last Execution Output area.
This button saves the code written in the Script area.
Last Execution Output
Here you can visualize the output of the last code execution.