R to PMML

Converts a given R object, e.g. as generated by the R Learner node as knime.model, into a corresponding PMML object that can then be used together with all KNIME predictors supporting PMML. The R object is first loaded into a new R workspace and then converted into PMML (using the PMML library in R). The toString() method in R is used to generate a character stream describing the PMML object which is written to the PMML out-port.

More details about R and PMML:
R project
PMML standard

Options

R Snippet

R Script
The code being executed in R. Input model should be previously made available in the R workspace as knime.model, while the desired output must be a string named knime.model.pmml.
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.

Advanced

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. You can either specify the path directly or use the R installation in a conda environment. The conda environment can be specified using a conda environment flow variable from e.g. a “Conda Environment Propagation” node.

Input Ports

Icon
R object generated by a R node

Output Ports

Icon
PMML object

Views

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.)

Workflows

Links

Developers

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.