Hi everyone,
I am using a R-Snippet for PCA projection (library (PCAmixdata).
My code is working in the R-Snippet dialog window. So, in the workspace there is the correct knime.out ← mixData$ind$coord matrix visible. But when I try to execute the node there comes a ERROR:
ERROR R Snippet 2:186 Execute failed: R evaluation failed.: “knime.tmp.ret<-NULL;printError<-function(e) message(paste(‘Error:’,conditionMessage(e)));for(exp in tryCatch(parse(text=knime.tmp.script),error=printError)){tryCatch(knime.tmp.ret<-withVisible(eval(exp)),error=printError)
if(!is.null(knime.tmp.ret)) {if(knime.tmp.ret$visible) print(knime.tmp.ret$value)}};rm(knime.tmp.script,exp,printError);knime.tmp.ret$value”
The code does work for me too.
Could you maybe share the workflow (or a sample data set) you are using, so I could try to reproduce the error?
Thanks!
Daria
I already mentioned this per email, but for others will elaborate more on the issue here also:
The PCAmixadata package opens a window with a plot duing the PCAmix function. While this does work on Windows for this case, it is not officially supported to use the R integration in this way (as in “opening windows from R”) since it causes problems especially on Mac.
Please refer to the PCAmixdata documentation, you will find that the PCAmix() function has a parameter graph which is set to TRUE by default. If you set that to false, it should work without a problem on Mac also.