This node opens a local R session and pushes the data table from Knime into R. If a snippet/script is selected and the GUI configured, it is automatically available from the clipboad and can be pasted to R. This enables quick prototyping of a script in R.
The input data table is sent to R as a data frame named "kIn". If the optional input ports are used then data frames are named "kIn1", "kIn2" and "kIn3".
Script Editor:
Copy, cut or paste and R code to the editor and/or select the columns from your data table. If a template is loaded used the GUI to adapt the script to the input data.
Templates:
Select a snippet template from the template repository (double-click or "Use this template") to use that script and see the GUI. The description explains what a snippet does. Then configure the GUI according to your input data.
IMPORTANT :
This node is using R as backend, make sure that Rserve is running somewhere, and Knime is accordingly configured (Knime->Preferences->Knime->R-Scripting). Scripting integration Wiki (R server)