R View (Workspace)

Allows execution of an R script from within KNIME. The view resulting from this script is returned in the output image port of this node.

More details about R:
http://www.r-project.org/
Short-refcard.pdf

Options

R Snippet

R Script
The code being executed in R. Input data should be previously made available in the R workspace and while the desired output image must be generated as an R view (eg. don't use the R function "png()" as this will likely result in a empty view).
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.

PNG Settings

Width
Resulting image width. Increase for improved resolution.
Height
Resulting image height. Increase for improved resolution.
Resultion
Resulting pixels per inch. Default value is 72, but may be increased for smaller but more detailed images.
Text Point Size
Default font size.
Background color
A default background color for the image.

Templates

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

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 Input

Output Ports

Icon
View Image

Views

R View
View displays the png generated by the R command entered within the dialog.
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.