0 ×

R Predictor

KNIME R-Project nodes version 4.3.1.v202101261634 by KNIME AG, Zurich, Switzerland

Allows execution of an R script from within KNIME. The resulting table should contain predictions about data attributes based on a model generated with an R Learner node.

More details about R:


R Command

R Snippet
The code being executed in R. New input data is available as a data frame named knime.in, while the desired model must be available as a variable in the workspace from a previously executed R Learner node.
Flow Variable List
The list contains the flow variables that are currently available at the node input. Double clicking any of the entries will insert the variable at the current cursor position.
Column List
The list contains the column references that are currently available at the node input. Double clicking any of the entries will insert the respective identifier at the current cursor position.


A template category defined by the author.
Names of the available templates.
A brief overview of the purpose of the template.
The code to be applied to your expression editor.


Convert NaN and +/-Infinity output to missing cells. Enable this for backwards compatibility with the behavior before version 2.10.
Send Row Names to R
Whether to send the row names from KNIME to R. Disabling this can improve performance with very large tables. Row names of knime.in will instead be default R row names: 1:n.
R type for knime.in
By default knime.in is data.frame. For large input tables, using data.table is likely more memory efficient especially while sending the input data to R and may therefore be faster. Please be aware that the support for data.table is experimental (!) and requires the "data.table" R package to be installed. It may not work for some R scripts, may slightly change or even be removed entirely in a future version.
Send batch size
The input of the R node is sent in row batches (default, 10 000 rows at a time). This is the amount of rows KNIME will retain in memory at any given time. For large tables, a higher batch size may be faster, but will require additional memory. Be aware, that R will likely keep all of the input table in memory and this only helps with memory during transmission of data to R.
Overwrite default path to R home
Check this option to select a path to the home of a R installation that is different from the path configured on the R preference page. The path must point to the root folder of the R installation tree.

Input Ports

R Model Input
Data Input

Output Ports

Predicted data output


R Std Output
The text sent to standard out during the execution of R executable as well as the text of the .Rout file generated by R.
R Error Output
The text sent to standard error during the execution of R executable as well as the text of the .Rout file generated by R. (If it appears in gray, it's the output of a previously failing run which is preserved for your trouble shooting.)

Best Friends (Incoming)

Best Friends (Outgoing)



To use this node in KNIME, install KNIME Interactive R Statistics Integration from the following update site:


A zipped version of the software site can be downloaded here.

You don't know what to do with this link? Read our NodePit Product and Node Installation Guide that explains you in detail how to install nodes to your KNIME Analytics Platform.

Wait a sec! You want to explore and install nodes even faster? We highly recommend our NodePit for KNIME extension for your KNIME Analytics Platform. Browse NodePit from within KNIME, install nodes with just one click and share your workflows with NodePit Space.


You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.